summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-05-12 21:48:28 +0200
committerGitHub <noreply@github.com>2020-05-12 21:48:28 +0200
commitc40fcdf39ab77cb0fde26e314652e0aaf9dd4544 (patch)
tree4bbaceccc1ae54a53f6e6c1bab16e8026ce8b3f5 /src
parentremove debug shit (diff)
downloadre3-c40fcdf39ab77cb0fde26e314652e0aaf9dd4544.tar
re3-c40fcdf39ab77cb0fde26e314652e0aaf9dd4544.tar.gz
re3-c40fcdf39ab77cb0fde26e314652e0aaf9dd4544.tar.bz2
re3-c40fcdf39ab77cb0fde26e314652e0aaf9dd4544.tar.lz
re3-c40fcdf39ab77cb0fde26e314652e0aaf9dd4544.tar.xz
re3-c40fcdf39ab77cb0fde26e314652e0aaf9dd4544.tar.zst
re3-c40fcdf39ab77cb0fde26e314652e0aaf9dd4544.zip
Diffstat (limited to 'src')
-rw-r--r--src/weapons/Weapon.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp
index e40deb61..3ac769d7 100644
--- a/src/weapons/Weapon.cpp
+++ b/src/weapons/Weapon.cpp
@@ -1238,7 +1238,7 @@ CWeapon::FireShotgun(CEntity *shooter, CVector *fireSource)
if ( cantStandup )
victimPed->SetFall(1500, AnimationId(ANIM_KO_SKID_FRONT + localDir), false);
- victimPed->InflictDamage(nil, m_eWeaponType, info->m_nDamage, (ePedPieceTypes)point.pieceB, localDir);
+ victimPed->InflictDamage(shooter, m_eWeaponType, info->m_nDamage, (ePedPieceTypes)point.pieceB, localDir);
if ( victimPed->m_nPedType == PEDTYPE_COP )
CEventList::RegisterEvent(EVENT_SHOOT_COP, EVENT_ENTITY_PED, victim, (CPed*)shooter, 10000);