From 76f62a5e5911a80e960e6c9a68ec421988616841 Mon Sep 17 00:00:00 2001 From: geemili Date: Thu, 15 Feb 2024 20:07:32 -0700 Subject: [PATCH] fix: set hand to nil when drawing cards --- solitaire.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/solitaire.lua b/solitaire.lua index 0356a8d..66654c2 100644 --- a/solitaire.lua +++ b/solitaire.lua @@ -258,6 +258,7 @@ function update() if not last_left and hover then if not exhausted and hover[1]==1 and left then + hand=nil draw_cards_to(stacks[1],stacks[2],3) if #stacks[1]==0 then exhausted=true