From 3c921ba80177e0b8c24fcad1cde5c903248d385a Mon Sep 17 00:00:00 2001 From: Nathan Franke Date: Sat, 20 Mar 2021 18:48:41 -0500 Subject: Add Root Null Check --- scene/main/scene_tree.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene/main') 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(); -- cgit v1.2.3