BUG 2298: fix NR display.

always use correct singular or plural form.
This commit is contained in:
Enno Rehling 2017-03-05 18:25:15 +01:00
parent 8d7f966391
commit f699c32f0e
1 changed files with 2 additions and 1 deletions

View File

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