v0.6.1b: fixed rare crashes when hero is cleared
This commit is contained in:
@@ -556,7 +556,7 @@ public class Dungeon {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void saveAll() throws IOException {
|
public static void saveAll() throws IOException {
|
||||||
if (hero.isAlive()) {
|
if (hero != null && hero.isAlive()) {
|
||||||
|
|
||||||
Actor.fixTime();
|
Actor.fixTime();
|
||||||
saveGame( gameFile( hero.heroClass ) );
|
saveGame( gameFile( hero.heroClass ) );
|
||||||
|
|||||||
Reference in New Issue
Block a user