fix bug 2237, respect lighthouse capacity.

This commit is contained in:
Enno Rehling 2016-09-17 15:31:04 +02:00
parent c4dbb69681
commit eb7dd051f8
1 changed files with 1 additions and 1 deletions

View File

@ -1317,7 +1317,7 @@ static void prepare_reports(void)
for (u = r->units; u; u = u->next) {
b = u->building;
if (b && b->type == bt_lighthouse) {
if (b && b->type == bt_lighthouse && inside_building(u)) {
/* we are in a lighthouse. add the regions we can see from here! */
prepare_lighthouse(b, u->faction);
}