mirror of
https://github.com/dashr9230/SA-MP.git
synced 2026-10-12 02:08:14 +08:00
[saco] Match CPlayerPed::HasAmmoForCurrentWeapon and GetAmmo; retail indexes WeaponSlots inline
This commit is contained in:
1 parent
52e959142d
commit
7a2a87b68c
1 file changed
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user