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

Fixes #46648

(cherry picked from commit f17f3f8830)
This commit is contained in:
voxelv 2021-06-23 22:54:00 -07:00 committed by Rémi Verschelde
parent 4fec6d4697
commit e6f420aabf
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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