[saco] Match CPlayerPed::HasAmmoForCurrentWeapon and GetAmmo; retail indexes WeaponSlots inline

This commit is contained in:
ricardoofnl committed 2026-09-03 01:33:32 +07:00
1 parent 52e959142d
commit 7a2a87b68c
1 file changed
+2 -2
+2 -2
View File
@@ -735,7 +735,7 @@ WEAPON_SLOT_TYPE * CPlayerPed::GetCurrentWeaponSlot()
BOOL CPlayerPed::HasAmmoForCurrentWeapon()
{
if(m_pPed) {
WEAPON_SLOT_TYPE * WeaponSlot = GetCurrentWeaponSlot();
WEAPON_SLOT_TYPE * WeaponSlot = &m_pPed->WeaponSlots[m_pPed->byteCurWeaponSlot];
if(!WeaponSlot) return TRUE;
@@ -1089,7 +1089,7 @@ BOOL CPlayerPed::HasGoggles()
WORD CPlayerPed::GetAmmo()
{
if(m_pPed) {
WEAPON_SLOT_TYPE * WeaponSlot = GetCurrentWeaponSlot();
WEAPON_SLOT_TYPE * WeaponSlot = &m_pPed->WeaponSlots[m_pPed->byteCurWeaponSlot];
if(!WeaponSlot) return -1;