v0.7.1: fixed a crash caused by converted upgraded boomerangs

This commit is contained in:
Evan Debenham 2018-11-22 02:30:20 -05:00
parent 47d01ebe00
commit a3b9fefc65

View File

@ -142,7 +142,8 @@ public class SpiritBow extends Weapon {
@Override @Override
public int level() { public int level() {
return Dungeon.hero.lvl/5; //need to check if hero is null for loading an upgraded bow from pre-0.7.0
return Dungeon.hero == null ? 0 : Dungeon.hero.lvl/5;
} }
@Override @Override