diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/special/SpecialRoom.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/special/SpecialRoom.java index 6fdf711b4..1f15d8ed6 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/special/SpecialRoom.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/rooms/special/SpecialRoom.java @@ -30,7 +30,6 @@ import com.watabou.utils.Reflection; import java.util.ArrayList; import java.util.Arrays; -import java.util.Collections; public abstract class SpecialRoom extends Room { @@ -168,7 +167,9 @@ public abstract class SpecialRoom extends Room { public static void restoreRoomsFromBundle( Bundle bundle ) { runSpecials.clear(); if (bundle.contains( ROOMS )) { - Collections.addAll(runSpecials, bundle.getClassArray(ROOMS)); + for (Class type : bundle.getClassArray(ROOMS)) { + runSpecials.add(type); + } } else { initForRun(); ShatteredPixelDungeon.reportException(new Exception("specials array didn't exist!"));