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 bdcdfb0db7
commit 85fb2ea8b4
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

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