summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-02-13 23:44:05 +0100
committersmix8 <52464204+smix8@users.noreply.github.com>2023-02-13 23:44:05 +0100
commitb51cab3411a18d0cce8f3bfd1e849a607ad4cab7 (patch)
tree54bfed0ebc7b857af199affcccf1bfc9f1ad3ad9
parent853c36ca0b6a4b8982215115b1fb1b62b58f2d98 (diff)
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.
-rw-r--r--modules/navigation/godot_navigation_server.cpp2
1 files changed, 1 insertions, 1 deletions
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).");
}
}