diff options
author | Nathan Franke <natfra@pm.me> | 2021-03-20 18:48:41 -0500 |
---|---|---|
committer | Nathan Franke <natfra@pm.me> | 2021-03-20 18:48:41 -0500 |
commit | 3c921ba80177e0b8c24fcad1cde5c903248d385a (patch) | |
tree | 643c075386b472eff1be529cf53cc40b67dbde14 /scene/main | |
parent | 7e86b4c0e463acc31a4818d61edf1aa5c018a1d8 (diff) |
Add Root Null Check
Diffstat (limited to 'scene/main')
-rw-r--r-- | scene/main/scene_tree.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp index 9aaddfd373..66f3a2ebde 100644 --- a/scene/main/scene_tree.cpp +++ b/scene/main/scene_tree.cpp @@ -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(); |