src/vehicle.cpp
changeset 10184 bf4e3ff4cf16
parent 10176 bd20cc54b41f
child 10193 ae0dc7f699bf
--- a/src/vehicle.cpp	Wed Sep 24 14:01:49 2008 +0000
+++ b/src/vehicle.cpp	Wed Sep 24 16:40:06 2008 +0000
@@ -2574,7 +2574,7 @@
 	}
 
 	this->cur_order_index++;
-	InvalidateVehicleOrder(this);
+	InvalidateVehicleOrder(this, 0);
 }
 
 CommandCost Vehicle::SendToDepot(uint32 flags, DepotCommand command)
@@ -2695,7 +2695,7 @@
 	if (new_first->NextShared() == NULL) {
 		/* When there is only one vehicle, remove the shared order list window. */
 		DeleteWindowById(GetWindowClassForVehicleType(this->type), old_window_number);
-		InvalidateVehicleOrder(new_first);
+		InvalidateVehicleOrder(new_first, 0);
 	} else if (this->FirstShared() == this) {
 		/* If we were the first one, update to the new first one. */
 		InvalidateWindowData(GetWindowClassForVehicleType(this->type), old_window_number, (new_first->index << 16) | (1 << 15));