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 | abfbba139e7f1b138ea11da83eb145e24f0ad350 (patch) | |
tree | 64ef685987ac780df5d0ab0f039691ff9cd13bf0 /src/strings.cpp | |
parent | 7c3ce5fc157975e32b7a7a8524d4b8d5097a3e56 (diff) | |
download | openttd-abfbba139e7f1b138ea11da83eb145e24f0ad350.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; |