diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-14 11:04:40 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-14 11:04:40 +0100 |
commit | 1fcee45ae5c37ef6e8e5a61fc4f246e04aaa8b28 (patch) | |
tree | 29e38d20df1a5ff4a4ecd42fdada5dbc78462c9b | |
parent | bed1ebd52737f2696ee3b1ba5e7531d0767bb9dc (diff) | |
parent | b51cab3411a18d0cce8f3bfd1e849a607ad4cab7 (diff) |
Merge pull request #73252 from smix8/navigationserver_improve_rid_not_found_error_4.x
Improve NavigationServer.free() error msg when RID not found
-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)."); } } |