diff options
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 941ad8153..5a9dbca72 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2574,7 +2574,7 @@ void Vehicle::HandleLoading(bool mode) } this->cur_order_index++; - InvalidateVehicleOrder(this); + InvalidateVehicleOrder(this, 0); } CommandCost Vehicle::SendToDepot(uint32 flags, DepotCommand command) @@ -2695,7 +2695,7 @@ void Vehicle::RemoveFromShared() 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)); |