diff options
author | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-09-09 17:24:40 +0200 |
---|---|---|
committer | A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> | 2023-09-15 20:15:39 +0200 |
commit | 75ee58fd0476360c67375cf403f06644a0aa117e (patch) | |
tree | dbfda27d4bcd56ed9dc6362c2e51521059e98788 /editor/editor_properties.cpp | |
parent | 5f1e56ff26be4070496aa51095b9ac2f2b4f4ed8 (diff) | |
download | redot-engine-75ee58fd0476360c67375cf403f06644a0aa117e.tar.gz |
[Editor] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'editor/editor_properties.cpp')
-rw-r--r-- | editor/editor_properties.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/editor_properties.cpp b/editor/editor_properties.cpp index 2a82b2cde4..7a6cae7248 100644 --- a/editor/editor_properties.cpp +++ b/editor/editor_properties.cpp @@ -2786,7 +2786,7 @@ void EditorPropertyNodePath::_node_selected(const NodePath &p_path) { if (!base_node && Object::cast_to<RefCounted>(get_edited_object())) { Node *to_node = get_node(p_path); - ERR_FAIL_COND(!to_node); + ERR_FAIL_NULL(to_node); path = get_tree()->get_edited_scene_root()->get_path_to(to_node); } @@ -2899,7 +2899,7 @@ void EditorPropertyNodePath::update_property() { } Node *target_node = base_node->get_node(p); - ERR_FAIL_COND(!target_node); + ERR_FAIL_NULL(target_node); if (String(target_node->get_name()).contains("@")) { assign->set_icon(Ref<Texture2D>()); |