v0.9.1: added a safety check on quickslot buttons

This commit is contained in:
Evan Debenham 2020-12-05 14:54:36 -05:00
parent aa7e8de37d
commit 1f8ea810a8

View File

@ -78,6 +78,9 @@ public class QuickSlotButton extends Button implements WndBag.Listener {
slot = new ItemSlot() {
@Override
protected void onClick() {
if (!Dungeon.hero.isAlive()){
return;
}
if (targeting) {
int cell = autoAim(lastTarget, select(slotNum));