From 82d90b90f1abb64f40b658fe1a204dd3fff827c4 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 17 Sep 2014 16:17:29 -0400 Subject: [PATCH] V0.2.0b: Fixed a bug with loading saves --- src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java b/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java index 55fa07b5f..1cb67f0c9 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java @@ -497,6 +497,8 @@ public class Dungeon { public static void loadGame( String fileName, boolean fullLoad ) throws IOException { Bundle bundle = gameBundle( fileName ); + + version = bundle.getInt( VERSION ); Dungeon.level = null; Dungeon.depth = -1; @@ -558,8 +560,6 @@ public class Dungeon { quickslot = null; } - version = bundle.getInt( VERSION ); - hero = null; hero = (Hero)bundle.get( HERO );