From 7b530968afdfe8ddb7fb3693f53dc1a9aceec86b Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Sat, 25 Jul 2026 17:52:13 +0800 Subject: [PATCH] fix(gameplay): correct hitbox insertion in HitboxManager::load --- src/gameplay/hitbox_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {