mirror of https://github.com/OpenTTD/OpenTTD
Fix b5885295: NewGRF preset dropdown was broken.
parent
72323ae9e6
commit
e0df937247
|
@ -1171,7 +1171,7 @@ struct NewGRFWindow : public Window, NewGRFScanCallback {
|
||||||
|
|
||||||
void OnDropdownSelect(int widget, int index) override
|
void OnDropdownSelect(int widget, int index) override
|
||||||
{
|
{
|
||||||
if (widget >= 0) return;
|
if (widget != WID_NS_PRESET_LIST) return;
|
||||||
if (!this->editable) return;
|
if (!this->editable) return;
|
||||||
|
|
||||||
ClearGRFConfigList(&this->actives);
|
ClearGRFConfigList(&this->actives);
|
||||||
|
|
Loading…
Reference in New Issue