diff options
author | nrb <email.com> | 2020-05-24 17:27:12 +0200 |
---|---|---|
committer | nrb <email.com> | 2020-05-24 17:27:12 +0200 |
commit | d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22 (patch) | |
tree | cb26faa96123be56fe3bad98a6447ae5f476b11b /src/weapons/Weapon.cpp | |
parent | how did saving even work in original III? (diff) | |
download | re3-d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22.tar re3-d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22.tar.gz re3-d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22.tar.bz2 re3-d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22.tar.lz re3-d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22.tar.xz re3-d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22.tar.zst re3-d59862eb5e9b56fe5b9fb0b2332e07b5266dcd22.zip |
Diffstat (limited to '')
-rw-r--r-- | src/weapons/Weapon.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/weapons/Weapon.cpp b/src/weapons/Weapon.cpp index ebdeb38b..6908abab 100644 --- a/src/weapons/Weapon.cpp +++ b/src/weapons/Weapon.cpp @@ -817,7 +817,7 @@ CWeapon::FireInstantHit(CEntity *shooter, CVector *fireSource) CPed *threatAttack = (CPed*)shooterPed->m_pPointGunAt; if ( threatAttack->IsPed() ) { - threatAttack->m_pedIK.GetComponentPosition((RwV3d)target, PED_MID); + threatAttack->m_pedIK.GetComponentPosition(*(RwV3d *)&target, PED_MID); threatAttack->ReactToPointGun(shooter); } else @@ -1483,7 +1483,7 @@ CWeapon::FireShotgun(CEntity *shooter, CVector *fireSource) { CVector pos; if (shooterPed->m_pPointGunAt->IsPed()) { - ((CPed*)shooterPed->m_pPointGunAt)->m_pedIK.GetComponentPosition((RwV3d)pos, PED_MID); + ((CPed*)shooterPed->m_pPointGunAt)->m_pedIK.GetComponentPosition(*(RwV3d *)&pos, PED_MID); } else { pos = ((CPed*)shooterPed->m_pPointGunAt)->GetPosition(); } |