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