mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Editor prerequisites [part 2] (#889)
This commit is contained in:
@@ -1441,6 +1441,12 @@ void CGTownInstance::afterAddToMap(CMap * map)
|
||||
map->towns.push_back(this);
|
||||
}
|
||||
|
||||
void CGTownInstance::afterRemoveFromMap(CMap * map)
|
||||
{
|
||||
if (ID == Obj::TOWN)
|
||||
vstd::erase_if_present(map->towns, this);
|
||||
}
|
||||
|
||||
void CGTownInstance::reset()
|
||||
{
|
||||
CGTownInstance::merchantArtifacts.clear();
|
||||
|
||||
Reference in New Issue
Block a user