From 1cf2f521ab32279b6770a79e7fb50ef5bbcd4011 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 11 Feb 2012 22:25:20 +0000 Subject: (svn r23930) -Fix [FS#4944]: [Script] Do not close the parameter window when a script starts --- src/ai/ai_gui.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ai/ai_gui.cpp b/src/ai/ai_gui.cpp index 603c0569b..40cca3b51 100644 --- a/src/ai/ai_gui.cpp +++ b/src/ai/ai_gui.cpp @@ -517,11 +517,7 @@ struct AISettingsWindow : public Window { */ virtual void OnInvalidateData(int data = 0, bool gui_scope = true) { - if (_game_mode == GM_NORMAL && Company::IsValidID(this->slot)) { - delete this; - } else { - this->RebuildVisibleSettings(); - } + this->RebuildVisibleSettings(); } }; -- cgit v1.2.3-70-g09d2