summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--matchblox/engine/C_MatchBloxEngine.cpp5
-rw-r--r--matchblox/engine/C_MatchBloxEngine.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/matchblox/engine/C_MatchBloxEngine.cpp b/matchblox/engine/C_MatchBloxEngine.cpp
index 7dca60d..45f5a43 100644
--- a/matchblox/engine/C_MatchBloxEngine.cpp
+++ b/matchblox/engine/C_MatchBloxEngine.cpp
@@ -117,7 +117,12 @@ GameResult C_MatchBloxEngine::ProcessMsgs(void)
//any button is pressed
//delete session and return GAME_FINISHED
delete m_pCurrentSession;
+
l_Result = GR_FINISHED;
+
+ //set state to initialised
+ m_State = ES_INITIALISED;
+
}
break;
diff --git a/matchblox/engine/C_MatchBloxEngine.h b/matchblox/engine/C_MatchBloxEngine.h
index 2e38526..511db5a 100644
--- a/matchblox/engine/C_MatchBloxEngine.h
+++ b/matchblox/engine/C_MatchBloxEngine.h
@@ -93,7 +93,7 @@ struct GameSession
}
~GameSession()
{
- delete [] m_puiTurnResult;
+ delete m_puiTurnResult;
}
bool NextTurn(BlockType &f_NewBlock)