Several cppcheck fixes.

This commit is contained in:
lotodore committed 2012-11-26 23:01:16 +01:00
1 parent 148ea5d92d
commit d48c9f59c7
3 files changed
+10 -7

No files matched your search

+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);