V0.2.0b: Fixed a bug with loading saves
This commit is contained in:
@@ -497,6 +497,8 @@ public class Dungeon {
|
|||||||
public static void loadGame( String fileName, boolean fullLoad ) throws IOException {
|
public static void loadGame( String fileName, boolean fullLoad ) throws IOException {
|
||||||
|
|
||||||
Bundle bundle = gameBundle( fileName );
|
Bundle bundle = gameBundle( fileName );
|
||||||
|
|
||||||
|
version = bundle.getInt( VERSION );
|
||||||
|
|
||||||
Dungeon.level = null;
|
Dungeon.level = null;
|
||||||
Dungeon.depth = -1;
|
Dungeon.depth = -1;
|
||||||
@@ -558,8 +560,6 @@ public class Dungeon {
|
|||||||
quickslot = null;
|
quickslot = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
version = bundle.getInt( VERSION );
|
|
||||||
|
|
||||||
hero = null;
|
hero = null;
|
||||||
hero = (Hero)bundle.get( HERO );
|
hero = (Hero)bundle.get( HERO );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user