Add Root Null Check

This commit is contained in:
Nathan Franke 2021-03-20 18:48:41 -05:00
parent 7e86b4c0e4
commit 3c921ba801
No known key found for this signature in database
GPG Key ID: 92164DCCF3B1F723

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