From fc0c200fa35c8715d64690cfa98a8f55529eaa98 Mon Sep 17 00:00:00 2001 From: Pranav Date: Thu, 22 Jul 2021 19:57:02 +0200 Subject: [PATCH] Bugfix: Check if units native to a terrain is non-empty before adding to buffer Fixes #541 --- client/helpdata.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/helpdata.cpp b/client/helpdata.cpp index 85805f408b..3d2a3f3e14 100644 --- a/client/helpdata.cpp +++ b/client/helpdata.cpp @@ -3694,8 +3694,8 @@ void helptext_extra(char *buf, size_t bufsz, struct player *pplayer, } } unit_class_iterate_end; - QString andlist = strvec_to_and_list(classes); if (!classes.isEmpty()) { + QString andlist = strvec_to_and_list(classes); if (proad != NULL) { // TRANS: %s is a list of unit classes separated by "and". cat_snprintf(buf, bufsz, _("* Can be traveled by %s units.\n"),