diff options
author | Peter Nelson <peter1138@openttd.org> | 2019-01-29 19:15:49 +0000 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2019-01-29 23:02:43 +0100 |
commit | 90c7ef96ca546efa333f4e3c4ca4e09fbab2a912 (patch) | |
tree | eb0f829c6826be8b8bcbc2bd6f27bf92f157e4d5 | |
parent | 2fcd4e61db3d6df40cf814718e3ab5d26777f47d (diff) | |
download | openttd-90c7ef96ca546efa333f4e3c4ca4e09fbab2a912.tar.xz |
Fix 11ab3c4ea2f: Fix showing cargo capacity for auto-refits (missed in #7134)
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 450b0cc2d..b4d6fdfab 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -689,8 +689,8 @@ struct RefitWindow : public Window { { assert(_current_company == _local_company); Vehicle *v = Vehicle::Get(this->window_number); - CommandCost cost = DoCommand(v->tile, this->selected_vehicle, option->cargo | (int)this->auto_refit << 6 | option->subtype << 8 | - this->num_vehicles << 16, DC_QUERY_COST, GetCmdRefitVeh(v->type)); + CommandCost cost = DoCommand(v->tile, this->selected_vehicle, option->cargo | option->subtype << 8 | this->num_vehicles << 16 | + (int)this->auto_refit << 24, DC_QUERY_COST, GetCmdRefitVeh(v->type)); if (cost.Failed()) return INVALID_STRING_ID; |