Browse Source

Fix loading of experience for predefined heroes

Ivan Savenko 2 years ago
parent
commit
7fc66c2797
1 changed files with 0 additions and 2 deletions
  1. 0 2
      lib/mapping/MapFormatH3M.cpp

+ 0 - 2
lib/mapping/MapFormatH3M.cpp

@@ -1665,8 +1665,6 @@ CGObjectInstance * CMapLoaderH3M::readHero(const int3 & mapPosition, const Objec
 		bool hasCustomExperience = reader->readBool();
 		bool hasCustomExperience = reader->readBool();
 		if(hasCustomExperience)
 		if(hasCustomExperience)
 			object->exp = reader->readUInt32();
 			object->exp = reader->readUInt32();
-		else
-			object->exp = CGHeroInstance::UNINITIALIZED_EXPERIENCE;
 	}
 	}
 	else
 	else
 	{
 	{