Browse Source

Fixed: 0001854: Rewarding objects loose their state after game is reloaded (breaks savegames)

rhn 11 years ago
parent
commit
aba3421e0a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/mapObjects/CGHeroInstance.h

+ 1 - 1
lib/mapObjects/CGHeroInstance.h

@@ -222,7 +222,7 @@ public:
 		h & exp & level & name & biography & portrait & mana & secSkills & movement
 		h & exp & level & name & biography & portrait & mana & secSkills & movement
 			& sex & inTownGarrison & spells & patrol & moveDir & skillsInfo;
 			& sex & inTownGarrison & spells & patrol & moveDir & skillsInfo;
 		h & visitedTown & boat;
 		h & visitedTown & boat;
-		h & type & specialty & commander;
+		h & type & specialty & commander & visitedObjects;
 		BONUS_TREE_DESERIALIZATION_FIX
 		BONUS_TREE_DESERIALIZATION_FIX
 		//visitied town pointer will be restored by map serialization method
 		//visitied town pointer will be restored by map serialization method
 	}
 	}