Merge pull request #115093 from Ivorforce/hashmap-explicit-copy

Change copy constructors of `HashMap` and `AHashMap` from implicit to explicit
This commit is contained in:
Rémi Verschelde 2026-01-31 22:50:51 +01:00
commit 429750f60b
No known key found for this signature in database
GPG key ID: C3336907360768E1
30 changed files with 34 additions and 35 deletions

View file

@ -1114,7 +1114,7 @@ void GridMap::_queue_octants_dirty() {
void GridMap::_recreate_octant_data() {
recreating_octants = true;
HashMap<IndexKey, Cell, IndexKey> cell_copy = cell_map;
HashMap<IndexKey, Cell, IndexKey> cell_copy(cell_map);
_clear_internal();
for (const KeyValue<IndexKey, Cell> &E : cell_copy) {
set_cell_item(Vector3i(E.key), E.value.item, E.value.rot);