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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user