[saco] Match CPlayerPed::StartGoggles; retail writes the HasGoggles test out inline

This commit is contained in:
ricardoofnl
2026-09-03 00:15:05 +07:00
parent 4e2dd5ffc5
commit 686bb11b7a
+2 -1
View File
@@ -1057,7 +1057,8 @@ BOOL CPlayerPed::IsInJetpackMode()
void CPlayerPed::StartGoggles()
{
if (HasGoggles()) return;
// retail writes the HasGoggles test out inline
if (m_pPed && (m_pPed->dwActiveVision != 0 || m_bGoggleState)) return;
if (FindWeaponSlot( 44 ) == NULL && FindWeaponSlot( 45 ) == NULL)
GiveWeapon( 44, 1 ); // Prevents crashing due to lack of animations.