v0.7.0: made painter code more resilient to the room list changing

This commit is contained in:
Evan Debenham 2018-06-19 21:03:45 -04:00
parent 3c02c6d95f
commit 2af7f9a3a2

View File

@ -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 );
}