1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fix loading of experience for predefined heroes

This commit is contained in:
Ivan Savenko 2023-06-26 20:02:43 +03:00
parent 3d66455cd1
commit 7fc66c2797

View File

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