diff options
author | rubidium <rubidium@openttd.org> | 2009-09-30 21:07:54 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-30 21:07:54 +0000 |
commit | c847f5c04e15920d6f4d9a80e181ffc63e61264a (patch) | |
tree | 9f80b07df68b2aa6c53c11a8be64e4cc4d690737 /src/ai | |
parent | 00324050930287e25d9a616f12cdf1421c3445e7 (diff) | |
download | openttd-c847f5c04e15920d6f4d9a80e181ffc63e61264a.tar.xz |
(svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/ai_gui.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 2f5135444..c1139bbcf 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -586,8 +586,7 @@ struct AIConfigWindow : public Window { if (slot == 0 || slot > _settings_newgame.difficulty.max_no_competitors) slot = INVALID_COMPANY; this->selected_slot = (CompanyID)slot; - this->OnInvalidateData(0); - this->SetDirty(); + this->InvalidateData(); break; } |