From 7d8ba7dd28c97c51ab2f8622612592480a708235 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sat, 16 May 2015 20:38:43 -0400 Subject: [PATCH] v0.3.0: adjusted how the game records version while saving. --- src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java b/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java index b1b9b3d77..9ce99750a 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/Dungeon.java @@ -409,8 +409,9 @@ public class Dungeon { public static void saveGame( String fileName ) throws IOException { try { Bundle bundle = new Bundle(); - - bundle.put( VERSION, Game.versionCode ); + + version = Game.versionCode; + bundle.put( VERSION, version ); bundle.put( CHALLENGES, challenges ); bundle.put( HERO, hero ); bundle.put( GOLD, gold );