You've already forked godot
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:
@@ -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.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user