mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-04 11:34:22 +01: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:
parent
0e6ca77e1a
commit
96e1f0a8f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user