summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 22:22:46 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 22:22:46 +0000
commit80e94b9bb15f846189e98f1f457afe2b96ba2b58 (patch)
treeb623c3e1cc75771986452340a138bd3ac60d4cbc /src/openttd.cpp
parent7a37220881c995f317bf5bd0f3077fa6c9e9d098 (diff)
downloadopenttd-80e94b9bb15f846189e98f1f457afe2b96ba2b58.tar.xz
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index db4f56f4d..90404cae3 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -31,6 +31,7 @@
#include "fios.h"
#include "aircraft.h"
#include "roadveh.h"
+#include "train.h"
#include "console_func.h"
#include "screenshot.h"
#include "network/network.h"
@@ -1132,7 +1133,7 @@ void StateGameLoop()
length = 0;
for (Vehicle *u = v; u != NULL; u = u->Next()) wagons[length++] = u->u.rail;
- TrainConsistChanged(v, true);
+ TrainConsistChanged((Train *)v, true);
length = 0;
for (Vehicle *u = v; u != NULL; u = u->Next()) {