1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

CGDwelling: dont set owner for Refugee Camp. Fix issue 2029

This commit is contained in:
Arseniy Shestakov 2016-02-13 19:26:47 +03:00
parent d775e40eba
commit d4524c2fbd

View File

@ -109,7 +109,8 @@ void CGDwelling::onHeroVisit( const CGHeroInstance * h ) const
return;
}
if(!relations && ID != Obj::WAR_MACHINE_FACTORY)
// TODO this shouldn't be hardcoded
if(!relations && ID != Obj::WAR_MACHINE_FACTORY && ID != Obj::REFUGEE_CAMP)
{
cb->setOwner(this, h->tempOwner);
}