diff --git a/source/code/BlockGame.cpp b/source/code/BlockGame.cpp index 46c79d8..fe5fd87 100644 --- a/source/code/BlockGame.cpp +++ b/source/code/BlockGame.cpp @@ -115,10 +115,11 @@ BlockGame::BlockGame() { pushedPixelAt = gameStartedAt; nextGarbageNumber = 10; handicap=0; - for (int i=0; i<7; i++) + for (int i=0; i<7; i++) { for (int j=0; j<30; j++) { board[i][j] = -1; } + } for (int i=0; i garbageSendQueue; - int AIlineToClear; + int AIlineToClear = 0; - short AIstatus; //Status flags: + short AIstatus = 0; //Status flags: //0: nothing, 2: clear tower, 3: clear horisontal, 4: clear vertical //1: make more lines, 5: make 2 lines, 6: make 1 line diff --git a/source/code/main.cpp b/source/code/main.cpp index 48c3a6e..ad02159 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp @@ -462,11 +462,11 @@ static ExplosionManager theExplosionManager; //text pop-up class TextMessage { private: - int x; - int y; + int x = 0; + int y = 0; string textt; - unsigned long int time; - unsigned long int placeTime; //Then the text was placed + unsigned long int time = 0; + unsigned long int placeTime = 0; //Then the text was placed public: TextMessage() {