From 608317213e8a2eeb4236a7fc8d7cfc974067ad08 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Sun, 5 Mar 2023 14:11:35 +0100 Subject: [PATCH] Fix NavigationServer free error print Fixes error print for NavigationServer free when a RID can not be found. (cherry picked from commit 73dc680fc127014ad805e5968f98ebb3e0281de7) --- modules/navigation/godot_navigation_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/navigation/godot_navigation_server.cpp b/modules/navigation/godot_navigation_server.cpp index 665a6d6cf92..b81f7cdd6d2 100644 --- a/modules/navigation/godot_navigation_server.cpp +++ b/modules/navigation/godot_navigation_server.cpp @@ -605,7 +605,7 @@ COMMAND_1(free, RID, p_object) { memdelete(agent); } else { - ERR_FAIL_COND("RID not found by NavigationServer."); + ERR_PRINT("Attempted to free a NavigationServer RID that did not exist (or was already freed)."); } }