bugfix crash 9/19/2001

when seen from lighthouse, skip units in buildings.
This commit is contained in:
Enno Rehling 2021-09-19 01:41:41 +02:00
parent 6a26ed5897
commit 209040e198
1 changed files with 4 additions and 0 deletions

View File

@ -2203,6 +2203,10 @@ report_plaintext(const char *filename, report_context * ctx,
}
}
}
else while (u && u->building) {
/* do not report units in buildings */
u = u->next;
}
while (u && !u->ship) {
if (visible_unit(u, f, stealthmod, r->seen.mode)) {
nr_unit(out, f, u, 4, r->seen.mode);