diff options
author | smix8 <52464204+smix8@users.noreply.github.com> | 2023-02-13 23:44:05 +0100 |
---|---|---|
committer | smix8 <52464204+smix8@users.noreply.github.com> | 2023-02-13 23:44:05 +0100 |
commit | b51cab3411a18d0cce8f3bfd1e849a607ad4cab7 (patch) | |
tree | 54bfed0ebc7b857af199affcccf1bfc9f1ad3ad9 /modules/navigation | |
parent | 853c36ca0b6a4b8982215115b1fb1b62b58f2d98 (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.
Diffstat (limited to 'modules/navigation')
-rw-r--r-- | modules/navigation/godot_navigation_server.cpp | 2 |
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)."); } } |