Skip to content

Commit

Permalink
Add Root Null Check
Browse files Browse the repository at this point in the history
(cherry picked from commit 3c921ba)
  • Loading branch information
Nathan Franke authored and akien-mga committed Mar 21, 2021
1 parent fed17af commit 5e43484
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/main/scene_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5e43484

Please sign in to comment.