summaryrefslogtreecommitdiffstats
path: root/src/peds/CopPed.cpp
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-08-31 20:09:48 +0200
committerSergeanur <s.anureev@yandex.ua>2020-08-31 20:09:48 +0200
commit8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961 (patch)
tree56be6a67035f26389ea47150dee8bbd6bcc4e07e /src/peds/CopPed.cpp
parentMerge pull request #697 from erorcun/miami (diff)
downloadre3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar
re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.gz
re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.bz2
re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.lz
re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.xz
re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.tar.zst
re3-8a0a29c64e5ebdfa71fe2d2a6a6e64c756a99961.zip
Diffstat (limited to '')
-rw-r--r--src/peds/CopPed.cpp4
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