From 75ee58fd0476360c67375cf403f06644a0aa117e Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Sat, 9 Sep 2023 17:24:40 +0200 Subject: [Editor] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable --- editor/export/editor_export_platform.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/export/editor_export_platform.cpp') diff --git a/editor/export/editor_export_platform.cpp b/editor/export/editor_export_platform.cpp index c07f17b46f..b3fefaafc6 100644 --- a/editor/export/editor_export_platform.cpp +++ b/editor/export/editor_export_platform.cpp @@ -756,7 +756,7 @@ String EditorExportPlatform::_export_customize(const String &p_path, LocalVector Ref ps = ResourceLoader::load(p_path, "PackedScene", ResourceFormatLoader::CACHE_MODE_IGNORE); ERR_FAIL_COND_V(ps.is_null(), p_path); Node *node = ps->instantiate(PackedScene::GEN_EDIT_STATE_INSTANCE); // Make sure the child scene root gets the correct inheritance chain. - ERR_FAIL_COND_V(node == nullptr, p_path); + ERR_FAIL_NULL_V(node, p_path); if (!customize_scenes_plugins.is_empty()) { for (Ref &plugin : customize_scenes_plugins) { Node *customized = plugin->_customize_scene(node, p_path); -- cgit v1.2.3