From f6ec2fa5b9f7ba9376eac96dfdcfa9e921d94363 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 15 Nov 2009 14:07:23 +0000 Subject: [PATCH] (svn r18095) -Fix (r18093): a bit too much nested_array != NULL removal --- src/window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/window.cpp b/src/window.cpp index 224031a2e4..873bfa6167 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -199,6 +199,9 @@ void Window::RaiseButtons(bool autoraise) */ void Window::SetWidgetDirty(byte widget_index) const { + /* Sometimes this function is called before the window is even fully initialized */ + if (this->nested_array == NULL) return; + this->nested_array[widget_index]->SetDirty(this); }