1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

(svn r23678) -Fix: close the editbox of settings when changing an AI, to avoid invalid memory read/write (reported by SmatZ)

This commit is contained in:
truebrain
2011-12-27 15:35:47 +00:00
parent 0e6ca77e1a
commit 96e1f0a8f0

View File

@@ -174,6 +174,7 @@ struct AIListWindow : public Window {
}
InvalidateWindowData(WC_GAME_OPTIONS, WN_GAME_OPTIONS_AI);
InvalidateWindowClassesData(WC_AI_SETTINGS);
DeleteWindowByClass(WC_QUERY_STRING);
}
virtual void OnClick(Point pt, int widget, int click_count)