1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

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

View File

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