diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java index 6cfc68843..e30acf430 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/ui/ItemSlot.java @@ -307,6 +307,13 @@ public class ItemSlot extends Button { public void enable( boolean value ) { active = value; + //reset properties if was pressed + if (!active && pressedButton == this){ + hotArea.reset(); + pressedButton = null; + clickReady = false; + onPointerUp(); + } float alpha = value ? ENABLED : DISABLED; sprite.alpha( alpha );