From c847f5c04e15920d6f4d9a80e181ffc63e61264a Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 30 Sep 2009 21:07:54 +0000 Subject: (svn r17674) -Codechange: replace SetDirty + OnInvalidateData with InvalidateData (which does the same). Also call InvalidateData in a few cases where that was actually meant. --- src/ai/ai_gui.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/ai') 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; } -- cgit v1.2.3-70-g09d2