diff options
author | rubidium <rubidium@openttd.org> | 2009-05-22 22:22:46 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-05-22 22:22:46 +0000 |
commit | 80e94b9bb15f846189e98f1f457afe2b96ba2b58 (patch) | |
tree | b623c3e1cc75771986452340a138bd3ac60d4cbc /src/train_gui.cpp | |
parent | 7a37220881c995f317bf5bd0f3077fa6c9e9d098 (diff) | |
download | openttd-80e94b9bb15f846189e98f1f457afe2b96ba2b58.tar.xz |
(svn r16391) -Codechange: use Train instead of Vehicle where appropriate.
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 7ffeac6aa..1f16bbd15 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -28,7 +28,7 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) FOR_ALL_VEHICLES(v) { if (v->type == VEH_TRAIN && IsFrontEngine(v) && v->tile == tile && - v->u.rail.track == TRACK_BIT_DEPOT) { + ((Train *)v)->u.rail.track == TRACK_BIT_DEPOT) { if (found != NULL) return; // must be exactly one. found = v; } |