소스 검색

game state was not cleaned up properly

Kajetan Johannes Hammerle 4 년 전
부모
커밋
df0bea33f1
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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++) {