mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
CGDwelling: dont set owner for Refugee Camp. Fix issue 2029
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user