summaryrefslogtreecommitdiff
path: root/src/strings.cpp
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2007-02-13 15:42:52 +0000
committercelestar <celestar@openttd.org>2007-02-13 15:42:52 +0000
commita89f2fd610733d863e77ef5436c20ac592666032 (patch)
tree97f07e8c9bbb7b74d420386b638d4c6d8944d7a7 /src/strings.cpp
parent82c696688c9f66c701a2426acc4aed4fd67f2730 (diff)
downloadopenttd-a89f2fd610733d863e77ef5436c20ac592666032.tar.xz
(svn r8707) -Codechange: Turn IsValidStation into a method of Station
Diffstat (limited to 'src/strings.cpp')
-rw-r--r--src/strings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings.cpp b/src/strings.cpp
index 341cfa446..d794e9c97 100644
--- a/src/strings.cpp
+++ b/src/strings.cpp
@@ -802,7 +802,7 @@ static char* FormatString(char* buff, const char* str, const int32* argv, uint c
case SCC_STATION_NAME: { // {STATION}
const Station* st = GetStation(GetInt32(&argv));
- if (!IsValidStation(st)) { // station doesn't exist anymore
+ if (!st->IsValid()) { // station doesn't exist anymore
buff = GetStringWithArgs(buff, STR_UNKNOWN_DESTINATION, NULL, last);
} else {
int32 temp[2];