From 194bdde94787227e8f53a4e3273c192ab70b03ac Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Fri, 26 Jul 2024 11:52:26 +0200 Subject: Cleanup of raw `nullptr` checks with `Ref` Using `is_valid/null` over checks with `nullptr` or `ERR_FAIL_NULL` etc. --- editor/export/editor_export_plugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/export/editor_export_plugin.cpp') diff --git a/editor/export/editor_export_plugin.cpp b/editor/export/editor_export_plugin.cpp index f56dd61e3b..6bb21d7fd4 100644 --- a/editor/export/editor_export_plugin.cpp +++ b/editor/export/editor_export_plugin.cpp @@ -140,7 +140,7 @@ Vector<String> EditorExportPlugin::get_ios_project_static_libs() const { } Variant EditorExportPlugin::get_option(const StringName &p_name) const { - ERR_FAIL_NULL_V(export_preset, Variant()); + ERR_FAIL_COND_V(export_preset.is_null(), Variant()); return export_preset->get(p_name); } -- cgit v1.2.3