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:
parent
3d66455cd1
commit
7fc66c2797
@ -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
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user