From b51cab3411a18d0cce8f3bfd1e849a607ad4cab7 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Mon, 13 Feb 2023 23:44:05 +0100 Subject: 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. --- 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 c3cb1c5f13..79e8c3a6d6 100644 --- a/modules/navigation/godot_navigation_server.cpp +++ b/modules/navigation/godot_navigation_server.cpp @@ -757,7 +757,7 @@ COMMAND_1(free, RID, p_object) { agent_owner.free(p_object); } else { - ERR_FAIL_COND("Invalid ID."); + ERR_FAIL_COND("Attempted to free a NavigationServer RID that did not exist (or was already freed)."); } } -- cgit v1.2.3