summaryrefslogtreecommitdiff
path: root/scene/main
diff options
context:
space:
mode:
authorNathan Franke <natfra@pm.me>2021-03-20 18:48:41 -0500
committerNathan Franke <natfra@pm.me>2021-03-20 18:48:41 -0500
commit3c921ba80177e0b8c24fcad1cde5c903248d385a (patch)
tree643c075386b472eff1be529cf53cc40b67dbde14 /scene/main
parent7e86b4c0e463acc31a4818d61edf1aa5c018a1d8 (diff)
Add Root Null Check
Diffstat (limited to 'scene/main')
-rw-r--r--scene/main/scene_tree.cpp1
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();