v0.6.2: fixed crashes when loading pre-0.6.2 saves

This commit is contained in:
Evan Debenham 2017-09-11 22:15:02 -04:00
parent 60ca4b0180
commit 17a15d2485

View File

@ -119,11 +119,11 @@ public abstract class SecretRoom extends SpecialRoom {
for (Class<? extends SecretRoom> type : bundle.getClassArray(ROOMS)) {
if (type != null) runSecrets.add(type);
}
regionSecretsThisRun = bundle.getIntArray(REGIONS);
} else {
initForRun();
ShatteredPixelDungeon.reportException(new Exception("secrets array didn't exist!"));
}
regionSecretsThisRun = bundle.getIntArray(REGIONS);
}
public static void storeRoomsInBundle( Bundle bundle ) {