From 141f2eba50aa0e475a49610b05c00d0f549ae53f Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 13 Mar 2011 21:34:49 +0000 Subject: (svn r22248) -Codechange: Make OnInvalidateData() process 'delete this;' already in command scope. --- src/misc_gui.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/misc_gui.cpp') diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index 4f97bcbf4..137d53388 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -652,7 +652,6 @@ public: */ virtual void OnInvalidateData(int data = 0, bool gui_scope = true) { - if (!gui_scope) return; /* If company gets shut down, while displaying an error about it, remove the error message. */ if (this->face != INVALID_COMPANY && !Company::IsValidID(this->face)) delete this; } -- cgit v1.2.3-54-g00ecf