src/ship_cmd.cpp
changeset 6613 1f914b423535
parent 6608 dc0b009642a4
child 6683 b88ae30866ce
--- a/src/ship_cmd.cpp	Sun May 13 22:10:04 2007 +0000
+++ b/src/ship_cmd.cpp	Mon May 14 08:07:20 2007 +0000
@@ -165,6 +165,7 @@
 		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;