From a84d64e4cc91ed7fb896ec4a4d9724175ba21c63 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 18 Aug 2016 01:17:31 -0400 Subject: [PATCH] v0.4.2: fixed a crash with prison boss level --- .../shatteredpixeldungeon/levels/PrisonBossLevel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java index aa988fba7..1544c989e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java @@ -221,7 +221,7 @@ public class PrisonBossLevel extends Level { } traps.clear(); - for (int i = 0; i < Dungeon.level.length(); i++){ + for (int i = 0; i < length(); i++){ if (map[i] == Terrain.INACTIVE_TRAP) { Trap t = new SpearTrap().reveal(); t.active = false;