diff options
author | rubidium <rubidium@openttd.org> | 2007-06-25 10:22:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-06-25 10:22:48 +0000 |
commit | 5c6106cbcf78cb422eec7e989b8276b7939259d5 (patch) | |
tree | 64ef685987ac780df5d0ab0f039691ff9cd13bf0 /src/strings.cpp | |
parent | 1904f8e838600eb64705eb5ca2d925698a630d00 (diff) | |
download | openttd-5c6106cbcf78cb422eec7e989b8276b7939259d5.tar.xz |
(svn r10320) -Fix [FS#278]: one could only build a limited number of stations before one had to rename them.
Diffstat (limited to 'src/strings.cpp')
-rw-r--r-- | src/strings.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp index 85ed61b5c..911786707 100644 --- a/src/strings.cpp +++ b/src/strings.cpp @@ -817,9 +817,10 @@ static char* FormatString(char* buff, const char* str, const int64* argv, uint c if (!st->IsValid()) { // station doesn't exist anymore buff = GetStringWithArgs(buff, STR_UNKNOWN_DESTINATION, NULL, last); } else { - int64 temp[2]; + int64 temp[3]; temp[0] = STR_TOWN; temp[1] = st->town->index; + temp[2] = st->index; buff = GetStringWithArgs(buff, st->string_id, temp, last); } break; |