diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-12-14 08:47:07 +0100 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-12-14 08:47:07 +0100 |
commit | f42a01f653c860b5df3cfdbe34cc37f25dc3c36a (patch) | |
tree | bc6a09f0a1ca0fafbf1e53b4c8e60b581281c0c4 /src/control/RoadBlocks.cpp | |
parent | Merge branch 'master' of https://github.com/GTAmodding/re3 (diff) | |
download | re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.gz re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.bz2 re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.lz re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.xz re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.tar.zst re3-f42a01f653c860b5df3cfdbe34cc37f25dc3c36a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/control/RoadBlocks.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/control/RoadBlocks.cpp b/src/control/RoadBlocks.cpp index 1496b307..170c5ff8 100644 --- a/src/control/RoadBlocks.cpp +++ b/src/control/RoadBlocks.cpp @@ -90,8 +90,7 @@ CRoadBlocks::GenerateRoadBlockCopsForCar(CVehicle* pVehicle, int32 roadBlockType pCopPed->m_nRoadblockNode = roadBlockNode; pCopPed->bCrouchWhenShooting = roadBlockType != 2; if (pEntityToAttack) { - pCopPed->m_pPointGunAt = pEntityToAttack; - pEntityToAttack->RegisterReference(&pCopPed->m_pPointGunAt); + pCopPed->SetWeaponLockOnTarget(pEntityToAttack); pCopPed->SetAttack(pEntityToAttack); } pCopPed->m_pMyVehicle = pVehicle; |