git repos / blockattack-game

commit 9a9a96ab

Poul Sander · 2024-10-15 20:25
9a9a96ab443e466d23860f42ad1bfd8a77ce6100 patch · browse files
parent 47fd5c32fce57b95ce891d4fc3a8bd2116e4785a

Add initialization of all member variables.

Changed files

M source/code/BlockGameSdl.hpp before
diff --git a/source/code/BlockGameSdl.hpp b/source/code/BlockGameSdl.hpp index 936e675..5b4a676 100644 --- a/source/code/BlockGameSdl.hpp +++ b/source/code/BlockGameSdl.hpp
@@ -668,8 +668,8 @@ public:
sago::SagoTextField player_speed;
//Old Stage Clear Buble
- int oldBubleX;
- int oldBubleY;
+ int oldBubleX = 0;
+ int oldBubleY = 0;
std::string infostring;
std::string infostringName;
@@ -677,7 +677,8 @@ public:
private:
- int topx, topy;
+ int topx = 0;
+ int topy = 0;
sago::SagoTextField scoreLabel;
sago::SagoTextField timeLabel;
sago::SagoTextField chainLabel;