Fix #11026: Use real engine name instead of default name for filtering (#11033)

This commit is contained in:
merni-ns 2023-06-19 04:33:32 +05:30 committed by GitHub
parent 714ff35e9d
commit b3669a8795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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);