mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 00:27:42 +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:
@@ -38,7 +38,7 @@ void CBoneTracking::PreRender(const CStateManager& mgr, CAnimData& animData, con
|
||||
TCastToConstPtr<CActor> targetAct = mgr.GetObjectById(x34_target);
|
||||
if (x36_24_active && tracking && (targetAct || x24_targetPosition)) {
|
||||
x36_25_hasTrackedRotation = true;
|
||||
auto layoutInfo = pb.CharLayoutInfo();
|
||||
const auto& layoutInfo = pb.CharLayoutInfo();
|
||||
CSegId bone;
|
||||
if (x36_26_noParent)
|
||||
bone = x14_segId;
|
||||
|
||||
Reference in New Issue
Block a user