v0.4.2: fixed a crash with prison boss level
This commit is contained in:
parent
e770d13d39
commit
a84d64e4cc
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user