mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
CGDwelling: dont set owner for Refugee Camp. Fix issue 2029
This commit is contained in:
parent
d775e40eba
commit
d4524c2fbd
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user