From 62f120b296e3667cba20e4cf5da7ec4d4dd69d5c Mon Sep 17 00:00:00 2001 From: smatz Date: Sat, 13 Jun 2009 10:22:22 +0000 Subject: [PATCH] (svn r16571) -Fix [FS#2974](r16322): in some cases, train could be stuck in depot --- src/train_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 87938ad5cc..a8b620ec1a 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -2436,7 +2436,7 @@ static bool CheckTrainStayInDepot(Train *v) } /* We are leaving a depot, but have to go to the exact same one; re-enter */ - if (v->tile == v->dest_tile) { + if (v->current_order.IsType(OT_GOTO_DEPOT) && v->tile == v->dest_tile) { /* We need to have a reservation for this to work. */ if (GetDepotWaypointReservation(v->tile)) return true; SetDepotWaypointReservation(v->tile, true);