Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 2ed6d9b

Browse files
committed
Fix missing safety check
1 parent e9a265a commit 2ed6d9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/AHuman.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3417,7 +3417,7 @@ void AHuman::Update()
34173417
}
34183418
EquipShieldInBGArm();
34193419
m_ArmsState = WEAPON_READY;
3420-
} else if (m_ArmsState == THROWING_RELEASE) {
3420+
} else if (m_ArmsState == THROWING_RELEASE && m_pFGArm) {
34213421
m_pFGArm->AddHandTarget("Adjusted Aim Angle", m_Pos + Vector(m_pFGArm->GetMaxLength() * GetFlipFactor(), -m_pFGArm->GetMaxLength() * 0.5F).RadRotate(adjustedAimAngle));
34223422
} else {
34233423
m_CanActivateBGItem = true;

0 commit comments

Comments
 (0)