Fix cases where departures board data was not invalidated
This commit is contained in:
@@ -2441,6 +2441,7 @@ void DeleteVehicleOrders(Vehicle *v, bool keep_orderlist, bool reset_order_indic
|
||||
v->orders.list = nullptr;
|
||||
} else {
|
||||
DeleteWindowById(GetWindowClassForVehicleType(v->type), VehicleListIdentifier(VL_SHARED_ORDERS, v->type, v->owner, v->index).Pack());
|
||||
InvalidateWindowClassesData(WC_DEPARTURES_BOARD, 0);
|
||||
if (v->orders.list != nullptr) {
|
||||
/* Remove the orders */
|
||||
v->orders.list->FreeChain(keep_orderlist);
|
||||
|
Reference in New Issue
Block a user