changeset 6502 | 8056fdc57aa9 |
parent 6491 | 00dc414c909d |
child 6544 | 5354749918ff |
--- a/src/roadveh_cmd.cpp Fri Apr 20 11:05:56 2007 +0000 +++ b/src/roadveh_cmd.cpp Fri Apr 20 11:39:01 2007 +0000 @@ -436,6 +436,8 @@ if (dep == NULL) return_cmd_error(STR_9019_UNABLE_TO_FIND_LOCAL_DEPOT); if (flags & DC_EXEC) { + if (v->current_order.type == OT_LOADING) v->LeaveStation(); + ClearSlot(v); v->current_order.type = OT_GOTO_DEPOT; v->current_order.flags = OF_NON_STOP;