1
0
Fork 0
mirror of https://github.com/halpz/re3.git synced 2025-03-04 03:39:41 +00:00

Fix enum use

This commit is contained in:
Sergeanur 2021-07-22 07:06:54 +03:00
parent a1444b992f
commit bbbe9b2632

View file

@ -3182,7 +3182,7 @@ bool
CPed::IsPedDoingDriveByShooting(void)
{
#ifdef FIX_BUGS
if (FindPlayerPed() == this && CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType)->m_nWeaponSlot == 5) {
if (FindPlayerPed() == this && CWeaponInfo::GetWeaponInfo(GetWeapon()->m_eWeaponType)->m_nWeaponSlot == WEAPONSLOT_SUBMACHINEGUN) {
#else
if (FindPlayerPed() == this && GetWeapon()->m_eWeaponType == WEAPONTYPE_UZI) {
#endif