forked from github/server
building needs to have owners to be used for taxes
This commit is contained in:
parent
98d1836d95
commit
ecc5d85118
|
@ -2637,7 +2637,8 @@ boolean is_owner_building(const struct building * b)
|
||||||
boolean is_tax_building(const building * b)
|
boolean is_tax_building(const building * b)
|
||||||
{
|
{
|
||||||
if (b->type->taxes) {
|
if (b->type->taxes) {
|
||||||
return true;
|
unit * u = buildingowner(b->region, b);
|
||||||
|
return u!=NULL;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue