From 5bcc420af30f5bd10f88db2708f29c395e133d6c Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 31 Dec 2022 18:00:19 +0000 Subject: [PATCH] Infra sharing: Allow using mass start/stop buttons in other company depots See: #469 --- src/vehicle_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp index 37be3a97ed..7279e969c1 100644 --- a/src/vehicle_cmd.cpp +++ b/src/vehicle_cmd.cpp @@ -722,7 +722,7 @@ CommandCost CmdMassStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32 if (vehicle_list_window) { if (!GenerateVehicleSortList(&list, vli, GB(p1, 8, 8))) return CMD_ERROR; } else { - if (!IsDepotTile(tile) || !IsTileOwner(tile, _current_company)) return CMD_ERROR; + if (!IsDepotTile(tile)) return CMD_ERROR; /* Get the list of vehicles in the depot */ BuildDepotVehicleList(vli.vtype, tile, &list, nullptr); }