From cbd9a1bf0d1cf5ab2c73177cc58608e4ca463175 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 29 Apr 2007 22:51:12 +0000 Subject: (svn r9756) -Fix [FS#755]: LeaveStation wasn't always called when a station was left. --- src/train_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index e00c0bc29..0a990d87f 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -3448,6 +3448,8 @@ static void CheckIfTrainNeedsService(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; -- cgit v1.2.3-70-g09d2