ship_cmd.c
changeset 2214 75d037f8dcc4
parent 2186 461a2aff3486
child 2464 3dee59d241c0
--- a/ship_cmd.c	Thu Jul 28 05:47:54 2005 +0000
+++ b/ship_cmd.c	Thu Jul 28 06:09:15 2005 +0000
@@ -220,7 +220,7 @@
 	}
 
 	if (v->current_order.type == OT_GOTO_DEPOT &&
-			(v->current_order.flags & (OF_UNLOAD | OF_FULL_LOAD)) == (OF_UNLOAD | OF_FULL_LOAD) &&
+			(v->current_order.flags & (OF_PART_OF_ORDERS | OF_SERVICE_IF_NEEDED)) == (OF_PART_OF_ORDERS | OF_SERVICE_IF_NEEDED) &&
 			!VehicleNeedsService(v)) {
 		v->cur_order_index++;
 	}