Several cppcheck fixes.

This commit is contained in:
lotodore
2012-11-26 23:01:16 +01:00
parent 148ea5d92d
commit d48c9f59c7
3 changed files with 10 additions and 7 deletions
+3 -2
View File
@@ -96,10 +96,11 @@ void LocalBeRo::run()
PlayerListIterator it_1, it_2;
// running player before smallBlind
bool formerRunningPlayerFound = false;
if(myHand->getActivePlayerList()->size() > 2) {
// running player before smallBlind
bool formerRunningPlayerFound = false;
it_1 = myHand->getActivePlayerIt(smallBlindPositionId);
if(it_1 == myHand->getActivePlayerList()->end()) {
throw LocalException(__FILE__, __LINE__, ERR_ACTIVE_PLAYER_NOT_FOUND);