From 8a594b8918a445d087cb3198f92ce4efd1d704f3 Mon Sep 17 00:00:00 2001 From: Alexander Hartung Date: Sun, 6 Feb 2022 16:13:55 +0100 Subject: [PATCH] Fix render when restart --- src/main/java/solitaer/BaseStack.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/solitaer/BaseStack.java b/src/main/java/solitaer/BaseStack.java index 5e78f37..686b60f 100644 --- a/src/main/java/solitaer/BaseStack.java +++ b/src/main/java/solitaer/BaseStack.java @@ -27,6 +27,8 @@ public abstract class BaseStack extends JPanel { public void clearStack() { stack.clear(); + offset = 0; + RenderStackNew(); } public boolean stackIsEmpty() {