From e0df9372472b0395a2f7670d5d7821ab821f8a86 Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 20 Sep 2023 21:23:42 +0200 Subject: [PATCH] Fix b5885295: NewGRF preset dropdown was broken. --- src/newgrf_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 81fb85560b..8ecdb1d657 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -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);