diff options
author | yexo <yexo@openttd.org> | 2010-09-12 16:54:39 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-09-12 16:54:39 +0000 |
commit | c3d4763a00538367688fb9e26f7503461057aabc (patch) | |
tree | 6211a54a4fa8a9a83c4e5625b6662009a724b0ea /src | |
parent | 17e6201d33c4f9294de8b87bd1ee9acf0f66cc81 (diff) | |
download | openttd-c3d4763a00538367688fb9e26f7503461057aabc.tar.xz |
(svn r20788) -Fix (r20733)[FS#4119]: start/stop all vehicles from non-train depots was broken
Diffstat (limited to 'src')
-rw-r--r-- | src/depot_gui.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index 3da0ec10d..6f9a04bd7 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -740,9 +740,11 @@ struct DepotWindow : Window { break; case DEPOT_WIDGET_STOP_ALL: - case DEPOT_WIDGET_START_ALL: - DoCommandP(this->window_number, (widget == DEPOT_WIDGET_START_ALL ? (1 << 0) : 0), this->type, CMD_MASS_START_STOP); + case DEPOT_WIDGET_START_ALL: { + VehicleListIdentifier vli(VL_DEPOT_LIST, this->type, this->owner); + DoCommandP(this->window_number, (widget == DEPOT_WIDGET_START_ALL ? (1 << 0) : 0), vli.Pack(), CMD_MASS_START_STOP); break; + } case DEPOT_WIDGET_SELL_ALL: /* Only open the confimation window if there are anything to sell */ |