1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00
This commit is contained in:
AlexVinS 2015-09-16 02:20:57 +03:00
parent b0c039bd7f
commit f2605e059c

View File

@ -217,9 +217,10 @@ CGHeroInstance::CGHeroInstance()
setNodeType(HERO);
ID = Obj::HERO;
tacticFormationEnabled = inTownGarrison = false;
mana = movement = portrait = level = -1;
mana = movement = portrait = -1;
isStanding = true;
moveDir = 4;
level = 1;
exp = 0xffffffff;
visitedTown = nullptr;
type = nullptr;
@ -291,7 +292,6 @@ void CGHeroInstance::initHero()
}
assert(validTypes());
level = 1;
if(exp == 0xffffffff)
{
initExp();