Skip to content

Commit 9a9a96a

Browse files
committed
Add initialization of all member variables.
1 parent 47fd5c3 commit 9a9a96a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

source/code/BlockGameSdl.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,16 +668,17 @@ class BlockGameSdl : public BlockGame {
668668
sago::SagoTextField player_speed;
669669

670670
//Old Stage Clear Buble
671-
int oldBubleX;
672-
int oldBubleY;
671+
int oldBubleX = 0;
672+
int oldBubleY = 0;
673673

674674
std::string infostring;
675675
std::string infostringName;
676676
std::string controldBoxText;
677677

678678

679679
private:
680-
int topx, topy;
680+
int topx = 0;
681+
int topy = 0;
681682
sago::SagoTextField scoreLabel;
682683
sago::SagoTextField timeLabel;
683684
sago::SagoTextField chainLabel;

0 commit comments

Comments
 (0)