mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-08-09 02:07:04 +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;
|
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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user