mirror of
https://github.com/godotengine/godot
synced 2024-09-18 20:21:31 +00:00
Avoid using a nullptr root in Tree._range_click_timeout().
Fixes #46648
This commit is contained in:
parent
bcd1fc832f
commit
f17f3f8830
|
@ -2135,6 +2135,10 @@ void Tree::_range_click_timeout() {
|
|||
}
|
||||
}
|
||||
|
||||
if (!root) {
|
||||
return;
|
||||
}
|
||||
|
||||
click_handled = false;
|
||||
Ref<InputEventMouseButton> mb;
|
||||
mb.instantiate();
|
||||
|
|
Loading…
Reference in a new issue