From f86dd1010cb485cf8cdd2401bbf32d70c6685f57 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 3 Jul 2018 00:25:51 +0100 Subject: [PATCH] Fix assertion failure on cancel depot/service in vehicle list window Fixes #61 --- src/vehicle_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index ca702b3e75..079b403a08 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1963,6 +1963,9 @@ public: case ADI_DEPOT: // Send to Depots DoCommandP(0, DEPOT_MASS_SEND | (index == ADI_SERVICE ? DEPOT_SERVICE : (DepotCommand)0), this->window_number, GetCmdSendToDepot(this->vli.vtype)); break; + case ADI_CANCEL_DEPOT: + DoCommandP(0, DEPOT_MASS_SEND | DEPOT_CANCEL, this->window_number, GetCmdSendToDepot(this->vli.vtype)); + break; case ADI_DEPOT_SELL: DoCommandP(0, DEPOT_MASS_SEND | DEPOT_SELL, this->window_number, GetCmdSendToDepot(this->vli.vtype));