Avoid using a nullptr root in Tree._range_click_timeout().

Fixes #46648
This commit is contained in:
voxelv 2021-06-23 22:54:00 -07:00
parent bcd1fc832f
commit f17f3f8830

View file

@ -2135,6 +2135,10 @@ void Tree::_range_click_timeout() {
}
}
if (!root) {
return;
}
click_handled = false;
Ref<InputEventMouseButton> mb;
mb.instantiate();