summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Peeten <dpeeten@onsneteindhoven.nl>2008-05-25 22:16:01 (GMT)
committerDennis Peeten <dpeeten@onsneteindhoven.nl>2008-05-25 22:16:01 (GMT)
commit90d88f8b0d01131ef06eca890153891a309385a0 (patch)
tree0ce34678104521c89406360c0c8ab3c58428483b
parentfcca48f210141e14e558a7064bcc6250e7aaf6fb (diff)
download2iv55-90d88f8b0d01131ef06eca890153891a309385a0.zip
2iv55-90d88f8b0d01131ef06eca890153891a309385a0.tar.gz
2iv55-90d88f8b0d01131ef06eca890153891a309385a0.tar.bz2
crash fix
-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)