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