(svn r9756) -Fix [FS#755]: LeaveStation wasn't always called when a station was left.

This commit is contained in:
rubidium 2007-04-29 22:51:12 +00:00
parent ec9ac99d01
commit cbd9a1bf0d

View File

@ -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;