From f84d928aff1db7106509206692d84c04c05c26f0 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sun, 3 Sep 2023 09:23:39 +0200 Subject: [PATCH] Backported from godot4: Improve NavigationServer.free() error msg when RID not found Improves the error msg when NavigationServer.free() does not find the RID e.g. because it was already deleted or did never exist in the first place. - smix8 https://github.com/godotengine/godot/commit/b51cab3411a18d0cce8f3bfd1e849a607ad4cab7 --- modules/navigation/pandemonium_navigation_server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/navigation/pandemonium_navigation_server.cpp b/modules/navigation/pandemonium_navigation_server.cpp index 0257ba59a..c364cc5e9 100644 --- a/modules/navigation/pandemonium_navigation_server.cpp +++ b/modules/navigation/pandemonium_navigation_server.cpp @@ -1001,7 +1001,7 @@ COMMAND_1(free, RID, p_object) { obstacle_owner.free(p_object); } else { - ERR_PRINT("Invalid RID."); + ERR_PRINT("Attempted to free a NavigationServer RID that did not exist (or was already freed)."); } }