Add Root Null Check

(cherry picked from commit 3c921ba801)
This commit is contained in:
Nathan Franke 2021-03-20 18:48:41 -05:00 committed by Rémi Verschelde
parent fed17afe7d
commit 5e434841ec
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -460,6 +460,7 @@ void SceneTree::input_event(const Ref<InputEvent> &p_event) {
}
void SceneTree::init() {
ERR_FAIL_COND(!root);
initialized = true;
root->_set_tree(this);
MainLoop::init();