mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-08 07:21:53 +00:00
(svn r18095) -Fix (r18093): a bit too much nested_array != NULL removal
This commit is contained in:
parent
54fb944468
commit
f6ec2fa5b9
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user