summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2012-02-11 22:25:20 +0000
committerrubidium <rubidium@openttd.org>2012-02-11 22:25:20 +0000
commit1cf2f521ab32279b6770a79e7fb50ef5bbcd4011 (patch)
treebb92c5b6e550e9761084e882aae82707f7aa3935 /src
parent27e54a4e365ebbbd2edfd9d46bcac211f784f02e (diff)
downloadopenttd-1cf2f521ab32279b6770a79e7fb50ef5bbcd4011.tar.xz
(svn r23930) -Fix [FS#4944]: [Script] Do not close the parameter window when a script starts
Diffstat (limited to 'src')
-rw-r--r--src/ai/ai_gui.cpp6
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();
}
};