mirror of
https://github.com/vcmi/vcmi.git
synced 2025-05-31 22:59:54 +02:00
Fix
This commit is contained in:
parent
009bfb8211
commit
9718ef1543
@ -1561,6 +1561,7 @@ std::string CGHeroInstance::getHeroTypeName() const
|
||||
|
||||
void CGHeroInstance::afterAddToMap(CMap * map)
|
||||
{
|
||||
if(ID = Obj::HERO)
|
||||
map->heroesOnMap.push_back(this);
|
||||
}
|
||||
|
||||
|
@ -1337,6 +1337,7 @@ void CGTownInstance::battleFinished(const CGHeroInstance *hero, const BattleResu
|
||||
|
||||
void CGTownInstance::afterAddToMap(CMap * map)
|
||||
{
|
||||
if(ID = Obj::TOWN)
|
||||
map->towns.push_back(this);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user