v0.6.1b: fixed rare crashes when hero is cleared

This commit is contained in:
Evan Debenham 2017-08-23 04:11:22 -04:00
parent 5dcb6b5ef4
commit e756328eef

View File

@ -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 ) );