Changeset - r25041:783449f690c9
[Not reviewed]
master
0 1 0
stormcone - 3 years ago 2021-03-11 20:40:48
48624099+stormcone@users.noreply.github.com
Fix #8733: Can't buy train engine when the "Engines only" filter is active
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/build_vehicle_gui.cpp
Show inline comments
 
@@ -1472,7 +1472,7 @@ struct BuildVehicleWindow : Window {
 
				if (sel_eng != INVALID_ENGINE) {
 
					CommandCallback *callback = (this->vehicle_type == VEH_TRAIN && RailVehInfo(sel_eng)->railveh_type == RAILVEH_WAGON) ? CcBuildWagon : CcBuildPrimaryVehicle;
 
					CargoID cargo = this->cargo_filter[this->cargo_filter_criteria];
 
					if (cargo == CF_ANY) cargo = CF_NONE;
 
					if (cargo == CF_ANY || cargo == CF_ENGINES) cargo = CF_NONE;
 
					DoCommandP(this->window_number, sel_eng | (cargo << 24), 0, GetCmdBuildVeh(this->vehicle_type), callback);
 
				}
 
				break;
0 comments (0 inline, 0 general)