From f699c32f0e76ddb46f5a237920153f6445be1dab Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 5 Mar 2017 18:25:15 +0100 Subject: [PATCH] BUG 2298: fix NR display. always use correct singular or plural form. --- src/report.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/report.c b/src/report.c index 43a7ab514..612df1dad 100644 --- a/src/report.c +++ b/src/report.c @@ -1004,8 +1004,9 @@ void report_region(struct stream *out, const region * r, faction * f) for (n = 0; n < numresults; ++n) { if (result[n].number >= 0 && result[n].level >= 0) { + const char * name = resourcename(result[n].rtype, result[n].number!=1); bytes = snprintf(bufp, size, ", %d %s/%d", result[n].number, - LOC(f->locale, result[n].rtype->_name), result[n].level); + LOC(f->locale, name), result[n].level); if (wrptr(&bufp, &size, bytes) != 0) WARN_STATIC_BUFFER(); }