Merge pull request #47206 from nathanfranke/add-root-null-check

[4.0] Add Root Null Check
This commit is contained in:
Rémi Verschelde 2021-03-21 01:18:43 +01:00 committed by GitHub
commit 1e6ef9ae6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();