(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
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}