diff options
Diffstat (limited to 'scene/main/node.h')
| -rw-r--r-- | scene/main/node.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/node.h b/scene/main/node.h index 2a45b70139..94c6893170 100644 --- a/scene/main/node.h +++ b/scene/main/node.h @@ -411,7 +411,7 @@ public: Window *get_last_exclusive_window() const; _FORCE_INLINE_ SceneTree *get_tree() const { - ERR_FAIL_COND_V(!data.tree, nullptr); + ERR_FAIL_NULL_V(data.tree, nullptr); return data.tree; } |
