mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-03 00:46:55 +02:00
Campaigns: fix crash on CMap::instanceNames serialization
This commit is contained in:
@ -1040,6 +1040,7 @@ void CGameState::placeCampaignHeroes()
|
||||
{
|
||||
auto heroPlaceholder = dynamic_cast<CGHeroPlaceholder *>(obj.get());
|
||||
map->removeBlockVisTiles(heroPlaceholder, true);
|
||||
map->instanceNames.erase(obj->instanceName);
|
||||
map->objects[heroPlaceholder->id.getNum()] = nullptr;
|
||||
delete heroPlaceholder;
|
||||
}
|
||||
|
Reference in New Issue
Block a user