From 75e49e7a3ca72f33b94babecd800f5d0badffbe9 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 15 Jul 2015 00:15:18 -0400 Subject: [PATCH] v0.3.1: fixed a bug with unequipping quickslotted items with a full inventory --- .../shatteredpixeldungeon/items/EquipableItem.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java index d8d11bd99..7bc7e6799 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/EquipableItem.java @@ -100,6 +100,8 @@ public abstract class EquipableItem extends Item { } if (collect && !collect( hero.belongings.backpack )) { + onDetach(); + Dungeon.quickslot.clearItem(this); Dungeon.level.drop( this, hero.pos ); }