summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 2543edf88..cf6e4a5eb 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -1140,7 +1140,7 @@ void StateGameLoop()
length = 0;
for (Train *u = t; u != NULL; u = u->Next()) wagons[length++] = u->tcache;
- TrainConsistChanged(t, true);
+ t->ConsistChanged(true);
length = 0;
for (Train *u = t; u != NULL; u = u->Next()) {