浏览代码

Fixes using init values when constructing panels.

(valgrind)  When creating the panels, I didn't
init hand and total_hands value.
Steve Thielemann 3 年之前
父节点
当前提交
39ae306986
共有 1 个文件被更改,包括 3 次插入0 次删除
  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();