Browse Source

Merge pull request #73252 from smix8/navigationserver_improve_rid_not_found_error_4.x

Improve NavigationServer.free() error msg when RID not found
Rémi Verschelde 2 năm trước cách đây
mục cha
commit
1fcee45ae5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      modules/navigation/godot_navigation_server.cpp

+ 1 - 1
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).");
 	}
 }