mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-05 00:49:09 +02:00
- Commanders will now be properly intialized
- Commanders show in the battle
This commit is contained in:
@ -777,6 +777,7 @@ void CGHeroInstance::initHero()
|
||||
if (GameConstants::COMMANDERS)
|
||||
{
|
||||
commander = new CCommanderInstance (VLC->creh->factionCommanders[type->heroType / 2]); //hopefully it returns town type
|
||||
commander->setArmyObj (castToArmyObj()); //TODO: separate function for setting commanders
|
||||
}
|
||||
|
||||
hoverName = VLC->generaltexth->allTexts[15];
|
||||
|
Reference in New Issue
Block a user