diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java index d5f636334..a7e67d352 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/painters/RegularPainter.java @@ -109,7 +109,7 @@ public abstract class RegularPainter extends Painter { Random.shuffle(rooms); - for (Room r : rooms) { + for (Room r : rooms.toArray(new Room[0])) { placeDoors( r ); r.paint( level ); }