v0.7.1: fixed a crash caused by converted upgraded boomerangs
This commit is contained in:
parent
47d01ebe00
commit
a3b9fefc65
|
@ -142,7 +142,8 @@ public class SpiritBow extends Weapon {
|
|||
|
||||
@Override
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user