Change copy constructors of HashMap and AHashMap from implicit to explicit.

This commit is contained in:
Lukas Tenbrink 2026-01-18 14:18:30 +01:00
parent 741fb8a306
commit 1825e89787
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);