(svn r22771) -Codechange: unify some NewGRFScan calling code

This commit is contained in:
rubidium
2011-08-20 17:46:03 +00:00
parent 9b72c8acf2
commit afe407322d
4 changed files with 24 additions and 26 deletions

View File

@@ -989,9 +989,7 @@ struct NewGRFWindow : public QueryStringBaseWindow {
this->avail_sel = NULL;
this->avail_pos = -1;
this->avails.ForceRebuild();
this->InvalidateData(GOID_NEWGRF_RESCANNED);
this->DeleteChildWindows(WC_QUERY_STRING); // Remove the parameter query window
InvalidateWindowClassesData(WC_SAVELOAD);
break;
}
}