summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authoradf88 <adf88@openttd.org>2017-08-31 06:47:17 +0000
committeradf88 <adf88@openttd.org>2017-08-31 06:47:17 +0000
commit88726f71b615b2f1c7525c4e62bf52c535b08f51 (patch)
treeb7ef3f77260bf4ad15dabcf7fe0833ee3cbcfde5 /src/vehicle.cpp
parent13d0296e7cf9ccd87e592b30b4e042ce847529a8 (diff)
downloadopenttd-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/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
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 */