Browse Source

game state was not cleaned up properly

Kajetan Johannes Hammerle 4 years ago
parent
commit
df0bea33f1
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Game.cpp

+ 2 - 0
Game.cpp

@@ -8,6 +8,8 @@ Game::Game() : activeX(-1), activeY(-1), directionX(0), directionY(0), state(SEL
 }
 
 void Game::reset() {
+    state = SELECTION;
+    lastLocation = 0;
     activeX = -1;
     activeY = -1;
     for(uint x = 0; x < 9; x++) {