diff options
author | Ninni Pipping <over999ships@gmail.com> | 2023-06-06 14:59:54 +0200 |
---|---|---|
committer | Ninni Pipping <over999ships@gmail.com> | 2023-06-10 08:56:30 +0200 |
commit | dcd2b883eb1af68c4fdb5993a19126e1d6d4ba82 (patch) | |
tree | a3ebb53906a6b45204d3d43762ab060f74fcde90 /scene/debugger/scene_debugger.cpp | |
parent | 9723077f4f91598152013b02b6c7d0576c74b319 (diff) | |
download | redot-engine-dcd2b883eb1af68c4fdb5993a19126e1d6d4ba82.tar.gz |
Use NULL instead of COND checks when appropriate
Restricted to scene
Diffstat (limited to 'scene/debugger/scene_debugger.cpp')
-rw-r--r-- | scene/debugger/scene_debugger.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/debugger/scene_debugger.cpp b/scene/debugger/scene_debugger.cpp index 6df40837c5..391388fc04 100644 --- a/scene/debugger/scene_debugger.cpp +++ b/scene/debugger/scene_debugger.cpp @@ -221,7 +221,7 @@ Error SceneDebugger::parse_message(void *p_user, const String &p_msg, const Arra void SceneDebugger::_save_node(ObjectID id, const String &p_path) { Node *node = Object::cast_to<Node>(ObjectDB::get_instance(id)); - ERR_FAIL_COND(!node); + ERR_FAIL_NULL(node); #ifdef TOOLS_ENABLED HashMap<const Node *, Node *> duplimap; |