From eb68964e476bce793ea58eeca1f436840f6bc403 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 26 Jun 2022 23:04:21 -0400 Subject: [PATCH] v1.3.0: fixed visual bugs with targeted and quickslot swapper --- .../shatteredpixeldungeon/ui/QuickSlotButton.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java index 567491821..73d923637 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/QuickSlotButton.java @@ -46,8 +46,8 @@ public class QuickSlotButton extends Button { private ItemSlot slot; - private static Image crossB; - private static Image crossM; + private Image crossB; + private Image crossM; private static boolean targeting = false; public static Char lastTarget = null; @@ -338,9 +338,11 @@ public class QuickSlotButton extends Button { public static void cancel() { if (targeting) { - crossB.visible = false; - crossM.remove(); - targeting = false; + for (QuickSlotButton btn : instance) { + btn.crossB.visible = false; + btn.crossM.remove(); + targeting = false; + } } } }