V0.2.0b: Fixed a bug with loading saves

This commit is contained in:
Evan Debenham 2014-09-17 16:17:29 -04:00
parent 5878352dc8
commit 82d90b90f1

View File

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