mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Fix appearance for camp heroes
This commit is contained in:
parent
aead3854b9
commit
b3cdcc774e
@ -2857,6 +2857,8 @@ void CGameState::replaceHeroesPlaceholders(const std::vector<CGameState::Campaig
|
||||
heroToPlace->tempOwner = heroPlaceholder->tempOwner;
|
||||
heroToPlace->pos = heroPlaceholder->pos;
|
||||
heroToPlace->type = VLC->heroh->objects[heroToPlace->subID];
|
||||
heroToPlace->appearance = VLC->objtypeh->getHandlerFor(Obj::HERO,
|
||||
heroToPlace->type->heroClass->getIndex())->getTemplates().front();
|
||||
|
||||
for(auto &&i : heroToPlace->stacks)
|
||||
i.second->type = VLC->creh->objects[i.second->getCreatureID()];
|
||||
|
Loading…
Reference in New Issue
Block a user