diff options
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index be047b3dd..7b8b06edb 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -861,7 +861,7 @@ static char *FormatString(char *buff, const char *str, int64 *argv, uint casei, buff = strecpy(buff, wp->name, last); } else { int64 temp[2]; - temp[0] = wp->town_index; + temp[0] = wp->town->index; temp[1] = wp->town_cn + 1; StringID str = wp->town_cn == 0 ? STR_WAYPOINTNAME_CITY : STR_WAYPOINTNAME_CITY_SERIAL; |