v0.3.1: fixed a bug with unequipping quickslotted items with a full inventory

This commit is contained in:
Evan Debenham 2015-07-15 00:15:18 -04:00 committed by Evan Debenham
parent bb4e915132
commit 75e49e7a3c

View File

@ -100,6 +100,8 @@ public abstract class EquipableItem extends Item {
} }
if (collect && !collect( hero.belongings.backpack )) { if (collect && !collect( hero.belongings.backpack )) {
onDetach();
Dungeon.quickslot.clearItem(this);
Dungeon.level.drop( this, hero.pos ); Dungeon.level.drop( this, hero.pos );
} }