1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-10 22:31:40 +02:00

Put imprisoned heroes back to prison

This commit is contained in:
Ivan Savenko
2024-11-17 18:07:28 +00:00
parent 51c5536b50
commit 0c4eb5156b

View File

@@ -338,7 +338,8 @@ void CGHeroInstance::setHeroType(HeroTypeID heroType)
void CGHeroInstance::initObj(vstd::RNG & rand)
{
updateAppearance();
if (ID == Obj::HERO)
updateAppearance();
}
void CGHeroInstance::initHero(vstd::RNG & rand, const HeroTypeID & SUBID)