Skip to content

Commit

Permalink
Bugfix: Check if units native to a terrain is non-empty before adding…
Browse files Browse the repository at this point in the history
… to buffer

Fixes #541
  • Loading branch information
Pranav authored and lmoureaux committed Jul 22, 2021
1 parent bb147cb commit fc0c200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/helpdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit fc0c200

Please sign in to comment.