mirror of https://github.com/godotengine/godot
Merge pull request #49890 from voxelv/fix_tree_range_click_timeout_crash_46648
Avoid using a nullptr root in Tree._range_click_timeout().
This commit is contained in:
commit
ce941397e5
|
|
@ -2155,6 +2155,10 @@ void Tree::_range_click_timeout() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!root) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
click_handled = false;
|
click_handled = false;
|
||||||
Ref<InputEventMouseButton> mb;
|
Ref<InputEventMouseButton> mb;
|
||||||
mb.instantiate();
|
mb.instantiate();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue