diff options
author | adf88 <adf88@openttd.org> | 2017-08-31 06:47:17 +0000 |
---|---|---|
committer | adf88 <adf88@openttd.org> | 2017-08-31 06:47:17 +0000 |
commit | 88726f71b615b2f1c7525c4e62bf52c535b08f51 (patch) | |
tree | b7ef3f77260bf4ad15dabcf7fe0833ee3cbcfde5 /src | |
parent | 13d0296e7cf9ccd87e592b30b4e042ce847529a8 (diff) | |
download | openttd-88726f71b615b2f1c7525c4e62bf52c535b08f51.tar.xz |
(svn r27904) -Fix [FS#6593]: When last vehicle is removed from shared orders group, hide the "Stop sharing" button in vehile orders window
Diffstat (limited to 'src')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index dff9febc0..e4a8c7bf1 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2677,7 +2677,7 @@ void Vehicle::RemoveFromShared() if (this->orders.list->GetNumVehicles() == 1) { /* When there is only one vehicle, remove the shared order list window. */ DeleteWindowById(GetWindowClassForVehicleType(this->type), vli.Pack()); - InvalidateVehicleOrder(this->FirstShared(), 0); + InvalidateVehicleOrder(this->FirstShared(), VIWD_MODIFY_ORDERS); } else if (were_first) { /* If we were the first one, update to the new first one. * Note: FirstShared() is already the new first */ |