mirror of https://github.com/godotengine/godot
Avoid using a nullptr root in Tree._range_click_timeout().
Fixes #46648
(cherry picked from commit f17f3f8830)
This commit is contained in:
parent
bdcdfb0db7
commit
85fb2ea8b4
|
|
@ -1677,6 +1677,10 @@ void Tree::_range_click_timeout() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!root) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
click_handled = false;
|
click_handled = false;
|
||||||
Ref<InputEventMouseButton> mb;
|
Ref<InputEventMouseButton> mb;
|
||||||
mb.instance();
|
mb.instance();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue