fix(gameplay): correct hitbox insertion in HitboxManager::load

This commit is contained in:
2026-07-25 17:52:13 +08:00
parent 930226cc47
commit 7b530968af

View File

@@ -49,8 +49,8 @@ AABB HitboxManager::load(const std::string& path) {
} }
} }
acc a; acc a;
if (m_hitboxes.insert(a, path)) { if (m_hitboxes.insert(
a->second = AABB{center, half}; a, std::pair<std::string, AABB>{path, AABB{center, half}})) {
return a->second; return a->second;
} }
} catch (const std::exception& e) { } catch (const std::exception& e) {