bugfix check log-object for debug_mode

This commit is contained in:
floty committed 2014-03-25 21:33:10 +01:00
1 parent 1f0e256fe6
commit 8a1e3a4371
3 files changed
+11 -9

No files matched your search

+2 -2
View File
@@ -77,7 +77,7 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, boost:
for(i=0; i<5; i++) tempBoardArray[i] = cardsArray[i];
// debug mode
myLog->debugMode_getBoardCards(tempBoardArray,myID);
if(myLog) myLog->debugMode_getBoardCards(tempBoardArray,myID);
// prepare whole player hand
for(i=0; i<5; i++) tempPlayerAndBoardArray[i+2] = tempBoardArray[i];
@@ -92,7 +92,7 @@ LocalHand::LocalHand(boost::shared_ptr<EngineFactory> f, GuiInterface *g, boost:
for(j=0; j<2; j++) tempPlayerArray[j] = cardsArray[2*k+j+5];
// debug mode
myLog->debugMode_getPlayerCards(tempPlayerArray,myID,k);
if(myLog) myLog->debugMode_getPlayerCards(tempPlayerArray,myID,k);
// complete whole player hand
for(j=0; j<2; j++) tempPlayerAndBoardArray[j] = tempPlayerArray[j];