Browse files

cleanup after running valgrind

  • Loading branch information...
1 parent 5335eca commit 4ec4195cddf9837a1bf94b8f4990ec0050f90912 @PhillipTaylor committed Mar 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/core/Hand.cpp
View
3 src/core/Hand.cpp
@@ -367,6 +367,7 @@ const HandValue Hand::GetStraightValue() const {
HandValue retval;
retval.type = HT_STRAIGHT;
retval.primaryCard = GetCardPtrAnySuit(highestSoFar);
+ retval.secondaryCard = nullptr;
return retval;
} else
return HANDVALUE_NO_HAND;
@@ -444,6 +445,7 @@ const HandValue Hand::GetPairValue() const {
HandValue retval;
retval.type = HT_PAIR;
retval.primaryCard = GetCardPtrAnySuit(iter->first);
+ retval.secondaryCard = nullptr;
return retval;
}
}
@@ -466,6 +468,7 @@ const HandValue Hand::GetHighCardValue() const {
HandValue retval;
retval.type = HT_HIGH_CARD;
retval.primaryCard = best_card;
+ retval.secondaryCard = nullptr;
return retval;
}

0 comments on commit 4ec4195

Please sign in to comment.