mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-23 00:28:08 +02:00
Stack instance now stores non-serialized pointer to army
This commit is contained in:
@ -1610,6 +1610,11 @@ void CGHeroInstance::levelUp(const std::vector<SecondarySkill> & skills)
|
||||
nodeHasChanged();
|
||||
}
|
||||
|
||||
void CGHeroInstance::attachCommanderToArmy()
|
||||
{
|
||||
commander->setArmy(this);
|
||||
}
|
||||
|
||||
void CGHeroInstance::levelUpAutomatically(vstd::RNG & rand)
|
||||
{
|
||||
while(gainsLevel())
|
||||
|
Reference in New Issue
Block a user