bugfix: program crash by logging in network games
This commit is contained in:
@@ -569,7 +569,7 @@ void LocalHand::switchRounds()
|
|||||||
myGui->refreshPot();
|
myGui->refreshPot();
|
||||||
myGui->refreshSet();
|
myGui->refreshSet();
|
||||||
currentRound = GAME_STATE_POST_RIVER;
|
currentRound = GAME_STATE_POST_RIVER;
|
||||||
myLog->setCurrentRound(currentRound);
|
if(myLog) myLog->setCurrentRound(currentRound);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check for all in condition
|
// check for all in condition
|
||||||
@@ -636,7 +636,7 @@ void LocalHand::switchRounds()
|
|||||||
|
|
||||||
if (currentRound < GAME_STATE_POST_RIVER) { // do not increment past 4
|
if (currentRound < GAME_STATE_POST_RIVER) { // do not increment past 4
|
||||||
currentRound = GameState(currentRound + 1);
|
currentRound = GameState(currentRound + 1);
|
||||||
myLog->setCurrentRound(currentRound);
|
if(myLog) myLog->setCurrentRound(currentRound);
|
||||||
}
|
}
|
||||||
|
|
||||||
//log board cards for allin
|
//log board cards for allin
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ public:
|
|||||||
|
|
||||||
void setCurrentRound(GameState theValue) {
|
void setCurrentRound(GameState theValue) {
|
||||||
currentRound = theValue;
|
currentRound = theValue;
|
||||||
myLog->setCurrentRound(currentRound);
|
if(myLog) myLog->setCurrentRound(currentRound);
|
||||||
}
|
}
|
||||||
GameState getCurrentRound() const {
|
GameState getCurrentRound() const {
|
||||||
return currentRound;
|
return currentRound;
|
||||||
|
|||||||
Reference in New Issue
Block a user