mirror of
https://github.com/vcmi/vcmi.git
synced 2024-11-24 08:32:34 +02:00
Fix
This commit is contained in:
parent
009bfb8211
commit
9718ef1543
@ -1561,7 +1561,8 @@ std::string CGHeroInstance::getHeroTypeName() const
|
||||
|
||||
void CGHeroInstance::afterAddToMap(CMap * map)
|
||||
{
|
||||
map->heroesOnMap.push_back(this);
|
||||
if(ID = Obj::HERO)
|
||||
map->heroesOnMap.push_back(this);
|
||||
}
|
||||
|
||||
void CGHeroInstance::setHeroTypeName(const std::string & identifier)
|
||||
|
@ -1337,7 +1337,8 @@ void CGTownInstance::battleFinished(const CGHeroInstance *hero, const BattleResu
|
||||
|
||||
void CGTownInstance::afterAddToMap(CMap * map)
|
||||
{
|
||||
map->towns.push_back(this);
|
||||
if(ID = Obj::TOWN)
|
||||
map->towns.push_back(this);
|
||||
}
|
||||
|
||||
void CGTownInstance::serializeJsonOptions(JsonSerializeFormat & handler)
|
||||
|
Loading…
Reference in New Issue
Block a user