diff options
author | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-25 22:16:01 (GMT) |
---|---|---|
committer | Dennis Peeten <dpeeten@onsneteindhoven.nl> | 2008-05-25 22:16:01 (GMT) |
commit | 90d88f8b0d01131ef06eca890153891a309385a0 (patch) | |
tree | 0ce34678104521c89406360c0c8ab3c58428483b | |
parent | fcca48f210141e14e558a7064bcc6250e7aaf6fb (diff) | |
download | 2iv55-90d88f8b0d01131ef06eca890153891a309385a0.zip 2iv55-90d88f8b0d01131ef06eca890153891a309385a0.tar.gz 2iv55-90d88f8b0d01131ef06eca890153891a309385a0.tar.bz2 |
crash fix
-rw-r--r-- | matchblox/engine/C_MatchBloxEngine.cpp | 5 | ||||
-rw-r--r-- | matchblox/engine/C_MatchBloxEngine.h | 2 |
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)
|