building needs to have owners to be used for taxes
This commit is contained in:
Enno Rehling 2009-07-30 19:10:14 +00:00
parent 98d1836d95
commit ecc5d85118
1 changed files with 2 additions and 1 deletions

View File

@ -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;
} }