Changeset - r27608:0d8f6dc1a7be
[Not reviewed]
master
0 1 0
merni-ns - 11 months ago 2023-06-18 23:03:32
66267867+merni-ns@users.noreply.github.com
Fix #11026: Use real engine name instead of default name for filtering (#11033)
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/build_vehicle_gui.cpp
Show inline comments
 
@@ -1370,7 +1370,8 @@ struct BuildVehicleWindow : Window {
 

	
 
		/* Filter engine name */
 
		this->string_filter.ResetState();
 
		this->string_filter.AddLine(GetString(e->info.string_id));
 
		SetDParam(0, PackEngineNameDParam(e->index, EngineNameContext::PurchaseList));
 
		this->string_filter.AddLine(GetString(STR_ENGINE_NAME));
 

	
 
		/* Filter NewGRF extra text */
 
		auto text = GetNewGRFAdditionalText(e->index);
0 comments (0 inline, 0 general)