Merge pull request #47206 from nathanfranke/add-root-null-check
[4.0] Add Root Null Check
This commit is contained in:
commit
1e6ef9ae6e
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue