1
0
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:
Michał W. Urbańczyk
2013-02-09 18:18:55 +00:00
parent e31f5062f9
commit 13b3d23b26
8 changed files with 75 additions and 65 deletions

View File

@ -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