mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
Stabilization
This commit is contained in:
@ -1547,14 +1547,14 @@ void CGHeroInstance::afterAddToMap(CMap * map)
|
||||
}
|
||||
}
|
||||
|
||||
if(ID == Obj::HERO)
|
||||
if(ID != Obj::PRISON)
|
||||
{
|
||||
map->heroesOnMap.emplace_back(this);
|
||||
}
|
||||
}
|
||||
void CGHeroInstance::afterRemoveFromMap(CMap* map)
|
||||
{
|
||||
if (ID == Obj::HERO)
|
||||
if (ID == Obj::PRISON)
|
||||
vstd::erase_if_present(map->heroesOnMap, this);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user