diff --git a/src/engine/local_engine/localhand.cpp b/src/engine/local_engine/localhand.cpp index d25b07fd..c59da6d9 100755 --- a/src/engine/local_engine/localhand.cpp +++ b/src/engine/local_engine/localhand.cpp @@ -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 diff --git a/src/engine/local_engine/localhand.h b/src/engine/local_engine/localhand.h index 0a2f91ad..ea6ea13a 100755 --- a/src/engine/local_engine/localhand.h +++ b/src/engine/local_engine/localhand.h @@ -90,7 +90,7 @@ public: void setCurrentRound(GameState theValue) { currentRound = theValue; - myLog->setCurrentRound(currentRound); + if(myLog) myLog->setCurrentRound(currentRound); } GameState getCurrentRound() const { return currentRound;