v0.4.2: fixed a crash with prison boss level

This commit is contained in:
Evan Debenham 2016-08-18 01:17:31 -04:00
parent e770d13d39
commit a84d64e4cc

View File

@ -221,7 +221,7 @@ public class PrisonBossLevel extends Level {
} }
traps.clear(); traps.clear();
for (int i = 0; i < Dungeon.level.length(); i++){ for (int i = 0; i < length(); i++){
if (map[i] == Terrain.INACTIVE_TRAP) { if (map[i] == Terrain.INACTIVE_TRAP) {
Trap t = new SpearTrap().reveal(); Trap t = new SpearTrap().reveal();
t.active = false; t.active = false;