Changeset - r28434:c6b545d79e9d
[Not reviewed]
master
0 1 0
Jonathan G Rennison - 4 months ago 2024-01-11 23:00:07
j.g.rennison@gmail.com
Fix: Build button text when train purchase window using "Engines" filter
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/build_vehicle_gui.cpp
Show inline comments
 
@@ -1142,7 +1142,7 @@ struct BuildVehicleWindow : Window {
 
	{
 
		NWidgetCore *widget = this->GetWidget<NWidgetCore>(WID_BV_BUILD);
 

	
 
		bool refit = this->sel_engine != INVALID_ENGINE && this->cargo_filter_criteria != CargoFilterCriteria::CF_ANY && this->cargo_filter_criteria != CargoFilterCriteria::CF_NONE;
 
		bool refit = this->sel_engine != INVALID_ENGINE && this->cargo_filter_criteria != CargoFilterCriteria::CF_ANY && this->cargo_filter_criteria != CargoFilterCriteria::CF_NONE && this->cargo_filter_criteria != CargoFilterCriteria::CF_ENGINES;
 
		if (refit) refit = Engine::Get(this->sel_engine)->GetDefaultCargoType() != this->cargo_filter_criteria;
 

	
 
		if (refit) {
0 comments (0 inline, 0 general)