mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Machine Factory and Refugee Camp can't be owned
This commit is contained in:
parent
dae9e1e316
commit
44fdb71933
@ -536,7 +536,14 @@ void CGDwelling::serializeJsonOptions(JsonSerializeFormat & handler)
|
||||
|
||||
const IOwnableObject * CGDwelling::asOwnable() const
|
||||
{
|
||||
return this;
|
||||
switch (ID.toEnum())
|
||||
{
|
||||
case Obj::WAR_MACHINE_FACTORY:
|
||||
case Obj::REFUGEE_CAMP:
|
||||
return nullptr; // can't be owned
|
||||
default:
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
ResourceSet CGDwelling::dailyIncome() const
|
||||
|
Loading…
Reference in New Issue
Block a user