v0.4.1a: fixed a crash when stepping on a curse trap with no armor.

This commit is contained in:
Evan Debenham
2016-08-08 16:42:48 -04:00
parent f4efc1d752
commit 7140f1e0fd
@@ -85,7 +85,7 @@ public class CursingTrap extends Trap {
} }
Armor armor = hero.belongings.armor; Armor armor = hero.belongings.armor;
if (!armor.cursed){ if (armor != null && !armor.cursed){
if (armor.glyph == null) if (armor.glyph == null)
priorityCurse.add(armor); priorityCurse.add(armor);
else else