diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -1279,7 +1279,7 @@ struct NewGRFWindow : public QueryString { if (!this->editable) return; - string_filter.SetFilterTerm(this->edit_str_buf); + string_filter.SetFilterTerm(this->text.buf); this->avails.SetFilterState(!string_filter.IsEmpty()); this->avails.ForceRebuild(); this->InvalidateData(0);