From 6cc42aa0fa8c99ca3666ac9586227ec0ddb0e4d6 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 3 Nov 2015 21:17:59 -0500 Subject: [PATCH] v0.3.2: fixed prison boss maps sometimes permanently changing --- .../shatteredpixeldungeon/levels/PrisonBossLevel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java b/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java index 6b54bdde7..953a795b5 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/levels/PrisonBossLevel.java @@ -114,7 +114,7 @@ public class PrisonBossLevel extends Level { @Override protected boolean build() { - map = MAP_START; + map = MAP_START.clone(); decorate(); buildFlagMaps(); @@ -229,7 +229,7 @@ public class PrisonBossLevel extends Level { } private void changeMap(int[] map){ - this.map = map; + this.map = map.clone(); GameScene.resetMap(); buildFlagMaps(); cleanWalls();