mirror of
https://github.com/godotengine/godot.git
synced 2024-12-03 09:52:18 +08:00
Add Root Null Check
This commit is contained in:
parent
7e86b4c0e4
commit
3c921ba801
@ -389,6 +389,7 @@ void SceneTree::set_group(const StringName &p_group, const String &p_name, const
|
||||
}
|
||||
|
||||
void SceneTree::initialize() {
|
||||
ERR_FAIL_COND(!root);
|
||||
initialized = true;
|
||||
root->_set_tree(this);
|
||||
MainLoop::initialize();
|
||||
|
Loading…
Reference in New Issue
Block a user