mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Finally working hero crossover in campaigns.
Uncovered new secrets of h3m.
This commit is contained in:
@ -783,7 +783,7 @@ void CGHeroInstance::initHero()
|
||||
level = 1;
|
||||
}
|
||||
|
||||
if (VLC->modh->modules.COMMANDERS)
|
||||
if (VLC->modh->modules.COMMANDERS && !commander)
|
||||
{
|
||||
commander = new CCommanderInstance (VLC->townh->factions[type->heroClass->faction].commander);
|
||||
commander->setArmyObj (castToArmyObj()); //TODO: separate function for setting commanders
|
||||
|
Reference in New Issue
Block a user