1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Clarify invalid RID errors in Server free() functions.

This commit is contained in:
Cory Petkovsek
2022-08-11 02:20:45 +08:00
parent 850c5ccccf
commit d7ba3b73a9
5 changed files with 10 additions and 10 deletions

View File

@@ -554,7 +554,7 @@ COMMAND_4(agent_set_callback, RID, p_agent, Object *, p_receiver, StringName, p_
COMMAND_1(free, RID, p_object) {
if (!p_object.is_valid()) {
ERR_FAIL_MSG("Invalid RID.");
ERR_FAIL_MSG("NavigationServer attempted to free a NULL RID.");
return;
}
if (map_owner.owns(p_object)) {
@@ -605,7 +605,7 @@ COMMAND_1(free, RID, p_object) {
memdelete(agent);
} else {
ERR_FAIL_COND("Invalid RID.");
ERR_FAIL_COND("RID not found by NavigationServer.");
}
}