mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
commit
0ccb706782
@ -1387,6 +1387,8 @@ static void handleEvent(SDL_Event & ev)
|
||||
{
|
||||
if(ourCampaign->mapsRemaining.size())
|
||||
{
|
||||
GH.pushInt(CMM);
|
||||
GH.pushInt(CMM->menu);
|
||||
CMM->openCampaignLobby(ourCampaign);
|
||||
}
|
||||
};
|
||||
|
@ -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