From 209040e1982ad90936361ac06214958651b87f1c Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 19 Sep 2021 01:41:41 +0200 Subject: [PATCH] bugfix crash 9/19/2001 when seen from lighthouse, skip units in buildings. --- src/report.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/report.c b/src/report.c index ca7bf70ee..a208bff02 100644 --- a/src/report.c +++ b/src/report.c @@ -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);