Mercurial > hg > openttd
changeset 18819:bc551bbe3014 draft
(svn r23668) -Fix: the 'Configure' button in the 'AI / Game Configuration' window didn't get enabled when activating a GameScript
author | smatz <smatz@openttd.org> |
---|---|
date | Sat, 24 Dec 2011 13:08:11 +0000 |
parents | b63f851861ef |
children | a41700432ff5 |
files | src/ai/ai_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -172,7 +172,7 @@ for (int i = 0; i < this->selected; i++) it++; GetConfig(slot)->Change((*it).second->GetName(), (*it).second->GetVersion()); } - SetWindowDirty(WC_GAME_OPTIONS, WN_GAME_OPTIONS_AI); + InvalidateWindowData(WC_GAME_OPTIONS, WN_GAME_OPTIONS_AI); } virtual void OnClick(Point pt, int widget, int click_count)