summaryrefslogtreecommitdiff
path: root/src/train_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-07-25 08:54:19 +0000
committerrubidium <rubidium@openttd.org>2009-07-25 08:54:19 +0000
commit7440ec7a7350051297439f58f30d63f02018a507 (patch)
tree5d23745781a128a5644c0169ea0d7eb8913f9e38 /src/train_cmd.cpp
parent59c48fee8bda56a788310f6d83b99087d518fb0f (diff)
downloadopenttd-7440ec7a7350051297439f58f30d63f02018a507.tar.xz
(svn r16947) -Codechange: use TileArea instead of train_tile, trainst_w and trainst_h.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r--src/train_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp
index b4a43560c..daf76d0da 100644
--- a/src/train_cmd.cpp
+++ b/src/train_cmd.cpp
@@ -4564,7 +4564,7 @@ void Train::OnNewDay()
/* update destination */
if (this->current_order.IsType(OT_GOTO_STATION)) {
- TileIndex tile = Station::Get(this->current_order.GetDestination())->train_tile;
+ TileIndex tile = Station::Get(this->current_order.GetDestination())->train_station.tile;
if (tile != INVALID_TILE) this->dest_tile = tile;
}