1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Merge pull request #78449 from Scony/add-agent-n-map-navserver-tests

Add `agent` and `map` tests for 'NavigationServer3D'
This commit is contained in:
Rémi Verschelde
2023-06-21 10:19:24 +02:00
2 changed files with 107 additions and 2 deletions

View File

@@ -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)) {