Browse Source

Fix NavigationServer free error print

Fixes error print for NavigationServer free when a RID can not be found.

(cherry picked from commit 73dc680fc127014ad805e5968f98ebb3e0281de7)
smix8 2 years ago
parent
commit
608317213e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/navigation/godot_navigation_server.cpp

+ 1 - 1
modules/navigation/godot_navigation_server.cpp

@@ -605,7 +605,7 @@ COMMAND_1(free, RID, p_object) {
 		memdelete(agent);
 
 	} else {
-		ERR_FAIL_COND("RID not found by NavigationServer.");
+		ERR_PRINT("Attempted to free a NavigationServer RID that did not exist (or was already freed).");
 	}
 }