bugfix: program crash by logging in network games

This commit is contained in:
floty
2012-01-07 20:46:30 +00:00
parent bb99c66e67
commit cbcc12da42
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -569,7 +569,7 @@ void LocalHand::switchRounds()
myGui->refreshPot();
myGui->refreshSet();
currentRound = GAME_STATE_POST_RIVER;
myLog->setCurrentRound(currentRound);
if(myLog) myLog->setCurrentRound(currentRound);
}
// check for all in condition
@@ -636,7 +636,7 @@ void LocalHand::switchRounds()
if (currentRound < GAME_STATE_POST_RIVER) { // do not increment past 4
currentRound = GameState(currentRound + 1);
myLog->setCurrentRound(currentRound);
if(myLog) myLog->setCurrentRound(currentRound);
}
//log board cards for allin
+1 -1
View File
@@ -90,7 +90,7 @@ public:
void setCurrentRound(GameState theValue) {
currentRound = theValue;
myLog->setCurrentRound(currentRound);
if(myLog) myLog->setCurrentRound(currentRound);
}
GameState getCurrentRound() const {
return currentRound;