2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 13:47:43 +00:00

CHierarchyPoseBuilder: Fix missing ampersand in CharLayoutInfo() return value

Previously this function was always returning by value, rather than by
reference, like what its contained called function does.
This commit is contained in:
Lioncash
2020-03-05 21:25:49 -05:00
parent 2f9dd38bbe
commit 4c90adf074
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ void CIkChain::Deactivate() { x44_24_activated = false; }
void CIkChain::Activate(const CAnimData& animData, const CSegId& segId, const zeus::CTransform& xf) {
x0_bone = segId;
auto info = animData.GetPoseBuilder().CharLayoutInfo();
const auto& info = animData.GetPoseBuilder().CharLayoutInfo();
x1_p1 = info->GetRootNode()->GetBoneMap()[x0_bone].x0_parentId;
if (x1_p1 != 2) {
x2_p2 = info->GetRootNode()->GetBoneMap()[x1_p1].x0_parentId;