src/roadveh_cmd.cpp
changeset 7109 7d410365d6fc
parent 7104 59f24cd8470b
child 7179 3e123c2b7c93
--- a/src/roadveh_cmd.cpp	Sun May 13 22:10:04 2007 +0000
+++ b/src/roadveh_cmd.cpp	Mon May 14 08:07:20 2007 +0000
@@ -1686,6 +1686,9 @@
 		return;
 	}
 
+	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;
 	v->current_order.dest = depot->index;