From e1aad00800cac3fcb42ebc410cb62117de35bd58 Mon Sep 17 00:00:00 2001 From: floty Date: Wed, 15 Apr 2009 16:24:46 +0000 Subject: [PATCH] delete division by 0 in localplayer.cpp which arised with the change to 10 players --- src/engine/local_engine/localplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/local_engine/localplayer.cpp b/src/engine/local_engine/localplayer.cpp index cd48f93c..bf22781b 100755 --- a/src/engine/local_engine/localplayer.cpp +++ b/src/engine/local_engine/localplayer.cpp @@ -1246,7 +1246,7 @@ void LocalPlayer::preflopEngine() { // Standard-Raise-Routine else { // raise-Betrag ermitteln - raise = (sBluff/(8-currentHand->getActivePlayerList()->size()))*currentHand->getSmallBlind(); + raise = (sBluff/(8-min(7,(int)(currentHand->getActivePlayerList()->size()))))*currentHand->getSmallBlind(); // raise-Betrag zu klein -> mindestens Standard-raise // if(raise < currentHand->getCurrentBeRo()->getHighestSet()) { // raise = currentHand->getCurrentBeRo()->getHighestSet();