summaryrefslogtreecommitdiff
path: root/src/train_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-22 22:33:05 +0000
committerrubidium <rubidium@openttd.org>2009-05-22 22:33:05 +0000
commitc4b627af422075ce4a0e1026c52f871dd3f146c0 (patch)
treefebaea249dc307b4b619aeff09e353677bbbcd84 /src/train_gui.cpp
parent80e94b9bb15f846189e98f1f457afe2b96ba2b58 (diff)
downloadopenttd-c4b627af422075ce4a0e1026c52f871dd3f146c0.tar.xz
(svn r16392) -Codechange: move some variables (the ones that aren't caches) from VehicleRail to Train
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r--src/train_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp
index 1f16bbd15..d351ce708 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 &&
- ((Train *)v)->u.rail.track == TRACK_BIT_DEPOT) {
+ ((Train *)v)->track == TRACK_BIT_DEPOT) {
if (found != NULL) return; // must be exactly one.
found = v;
}