summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index a17a67cbc..fd4b64e4c 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -429,6 +429,7 @@ TileIndex Order::GetLocation(const Vehicle *v) const
switch (this->GetType()) {
case OT_GOTO_WAYPOINT:
case OT_GOTO_STATION:
+ case OT_AUTOMATIC:
return BaseStation::Get(this->GetDestination())->xy;
case OT_GOTO_DEPOT: