1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-09-01 19:09:09 +00:00

(svn r18095) -Fix (r18093): a bit too much nested_array != NULL removal

This commit is contained in:
rubidium
2009-11-15 14:07:23 +00:00
parent 54fb944468
commit f6ec2fa5b9

View File

@@ -199,6 +199,9 @@ void Window::RaiseButtons(bool autoraise)
*/ */
void Window::SetWidgetDirty(byte widget_index) const 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); this->nested_array[widget_index]->SetDirty(this);
} }