Browse Source

Fixes using init values when constructing panels.

(valgrind)  When creating the panels, I didn't
init hand and total_hands value.
Steve Thielemann 3 năm trước cách đây
mục cha
commit
39ae306986
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      play.cpp

+ 3 - 0
play.cpp

@@ -66,6 +66,9 @@ PlayCards::PlayCards(door::Door &d, DBData &dbd, std::mt19937 &r)
    * for today.
    */
 
+  hand = 0;
+  total_hands = 0;
+
   spaceAceTriPeaks = make_tripeaks();
   score_panel = make_score_panel();
   streak_panel = make_streak_panel();