diff --git a/src/gameplay/hitbox_manager.cpp b/src/gameplay/hitbox_manager.cpp index 02e1ed3..49c7b76 100644 --- a/src/gameplay/hitbox_manager.cpp +++ b/src/gameplay/hitbox_manager.cpp @@ -49,8 +49,8 @@ AABB HitboxManager::load(const std::string& path) { } } acc a; - if (m_hitboxes.insert(a, path)) { - a->second = AABB{center, half}; + if (m_hitboxes.insert( + a, std::pair{path, AABB{center, half}})) { return a->second; } } catch (const std::exception& e) {