You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Add agent and map tests for 'NavigationServer3D'
This commits fixes a bug in `free()` function as well.
This commit is contained in:
@@ -997,8 +997,10 @@ COMMAND_1(free, RID, p_object) {
|
||||
}
|
||||
|
||||
int map_index = active_maps.find(map);
|
||||
active_maps.remove_at(map_index);
|
||||
active_maps_update_id.remove_at(map_index);
|
||||
if (map_index >= 0) {
|
||||
active_maps.remove_at(map_index);
|
||||
active_maps_update_id.remove_at(map_index);
|
||||
}
|
||||
map_owner.free(p_object);
|
||||
|
||||
} else if (region_owner.owns(p_object)) {
|
||||
|
||||
Reference in New Issue
Block a user