v0.6.2: fixed crashes when loading pre-0.6.2 saves
This commit is contained in:
parent
60ca4b0180
commit
17a15d2485
|
@ -119,11 +119,11 @@ public abstract class SecretRoom extends SpecialRoom {
|
||||||
for (Class<? extends SecretRoom> type : bundle.getClassArray(ROOMS)) {
|
for (Class<? extends SecretRoom> type : bundle.getClassArray(ROOMS)) {
|
||||||
if (type != null) runSecrets.add(type);
|
if (type != null) runSecrets.add(type);
|
||||||
}
|
}
|
||||||
|
regionSecretsThisRun = bundle.getIntArray(REGIONS);
|
||||||
} else {
|
} else {
|
||||||
initForRun();
|
initForRun();
|
||||||
ShatteredPixelDungeon.reportException(new Exception("secrets array didn't exist!"));
|
ShatteredPixelDungeon.reportException(new Exception("secrets array didn't exist!"));
|
||||||
}
|
}
|
||||||
regionSecretsThisRun = bundle.getIntArray(REGIONS);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void storeRoomsInBundle( Bundle bundle ) {
|
public static void storeRoomsInBundle( Bundle bundle ) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user