summaryrefslogtreecommitdiff
path: root/src/ship_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-05-14 08:07:20 +0000
committerrubidium <rubidium@openttd.org>2007-05-14 08:07:20 +0000
commit42f920964b25d3ac49b24ee4c448dc4c8a6a20c9 (patch)
treec22121bc557a8c8b153119edd0f8129a084b8f6f /src/ship_cmd.cpp
parente72ab0fdf5f72221eee6f2eebea54e6d9560b7f3 (diff)
downloadopenttd-42f920964b25d3ac49b24ee4c448dc4c8a6a20c9.tar.xz
(svn r9833) -Fix: also 'leave' the station when leaving for automatic servicing.
Diffstat (limited to 'src/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index ef887873d..e50d0376b 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -165,6 +165,7 @@ static void CheckIfShipNeedsService(Vehicle *v)
return;
}
+ if (v->current_order.type == OT_LOADING) v->LeaveStation();
v->current_order.type = OT_GOTO_DEPOT;
v->current_order.flags = OF_NON_STOP;
v->current_order.dest = depot->index;