mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-08 17:57:02 +08:00
fix(gameplay): correct hitbox insertion in HitboxManager::load
This commit is contained in:
@@ -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<std::string, AABB>{path, AABB{center, half}})) {
|
||||
return a->second;
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
|
||||
Reference in New Issue
Block a user