diff options
author | aap <aap@papnet.eu> | 2020-09-01 17:31:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-01 17:31:35 +0200 |
commit | 0640ec7f5a7db213e2777bf836ad7da45981c9fd (patch) | |
tree | fbfc0cadff2efdaaa818bed1b88a7f054e571a25 /src/peds/CopPed.cpp | |
parent | Merge pull request #699 from Nick007J/miami (diff) | |
parent | Rename vars (diff) | |
download | re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.gz re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.bz2 re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.lz re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.xz re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.tar.zst re3-0640ec7f5a7db213e2777bf836ad7da45981c9fd.zip |
Diffstat (limited to 'src/peds/CopPed.cpp')
-rw-r--r-- | src/peds/CopPed.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/peds/CopPed.cpp b/src/peds/CopPed.cpp index 6c9eb276..8dd517a2 100644 --- a/src/peds/CopPed.cpp +++ b/src/peds/CopPed.cpp @@ -18,6 +18,7 @@ #include "Camera.h" #include "PedPlacement.h" #include "Ropes.h" +#include "Stinger.h" CCopPed::CCopPed(eCopType copType, int32 modifier) : CPed(PEDTYPE_COP) { @@ -92,6 +93,7 @@ CCopPed::CCopPed(eCopType copType, int32 modifier) : CPed(PEDTYPE_COP) m_nHassleTimer = 0; field_61C = 0; field_624 = 0; + m_pStinger = new CStinger; if (m_pPointGunAt) m_pPointGunAt->CleanUpOldReference((CEntity**)&m_pPointGunAt); m_pPointGunAt = nil; @@ -100,6 +102,8 @@ CCopPed::CCopPed(eCopType copType, int32 modifier) : CPed(PEDTYPE_COP) CCopPed::~CCopPed() { ClearPursuit(); + m_pStinger->Remove(); + delete m_pStinger; } // --MIAMI: Done |