Fix b5885295: NewGRF preset dropdown was broken.

This commit is contained in:
frosch 2023-09-20 21:23:42 +02:00 committed by frosch
parent 72323ae9e6
commit e0df937247
1 changed files with 1 additions and 1 deletions

View File

@ -1171,7 +1171,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
void OnDropdownSelect(int widget, int index) override
{
if (widget >= 0) return;
if (widget != WID_NS_PRESET_LIST) return;
if (!this->editable) return;
ClearGRFConfigList(&this->actives);