diff options
author | rubidium <rubidium@openttd.org> | 2012-02-11 22:25:20 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-02-11 22:25:20 +0000 |
commit | 1cf2f521ab32279b6770a79e7fb50ef5bbcd4011 (patch) | |
tree | bb92c5b6e550e9761084e882aae82707f7aa3935 | |
parent | 27e54a4e365ebbbd2edfd9d46bcac211f784f02e (diff) | |
download | openttd-1cf2f521ab32279b6770a79e7fb50ef5bbcd4011.tar.xz |
(svn r23930) -Fix [FS#4944]: [Script] Do not close the parameter window when a script starts
-rw-r--r-- | src/ai/ai_gui.cpp | 6 |
1 files changed, 1 insertions, 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(); } }; |