summaryrefslogtreecommitdiffstats
path: root/modules/navigation/editor
diff options
context:
space:
mode:
authorA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-09 17:40:07 +0200
committerA Thousand Ships <96648715+AThousandShips@users.noreply.github.com>2023-09-26 16:44:52 +0200
commit517e9f8aefed8925c1b66932a0d3cb887e99d267 (patch)
treee62fccf23a2f155d5c5799aebe5b0837e33c6377 /modules/navigation/editor
parent36945dad0730ee013547493df60c4c59567b4290 (diff)
downloadredot-engine-517e9f8aefed8925c1b66932a0d3cb887e99d267.tar.gz
[Modules] Replace `ERR_FAIL_COND` with `ERR_FAIL_NULL` where applicable
Diffstat (limited to 'modules/navigation/editor')
-rw-r--r--modules/navigation/editor/navigation_mesh_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/navigation/editor/navigation_mesh_editor_plugin.cpp b/modules/navigation/editor/navigation_mesh_editor_plugin.cpp
index d6c31ca35e..18d66c7b69 100644
--- a/modules/navigation/editor/navigation_mesh_editor_plugin.cpp
+++ b/modules/navigation/editor/navigation_mesh_editor_plugin.cpp
@@ -64,7 +64,7 @@ void NavigationMeshEditor::_notification(int p_what) {
void NavigationMeshEditor::_bake_pressed() {
button_bake->set_pressed(false);
- ERR_FAIL_COND(!node);
+ ERR_FAIL_NULL(node);
Ref<NavigationMesh> navmesh = node->get_navigation_mesh();
if (!navmesh.is_valid()) {
err_dialog->set_text(TTR("A NavigationMesh resource must be set or created for this node to work."));