diff --git a/saco/game/actorped.cpp b/saco/game/actorped.cpp index 94f4f09..356aab8 100644 --- a/saco/game/actorped.cpp +++ b/saco/game/actorped.cpp @@ -34,6 +34,13 @@ CActorPed::CActorPed(int iSkin, float fX, float fY,float fZ,float fRotation) //----------------------------------------------------------- +CActorPed::~CActorPed() +{ + Destroy(); +} + +//----------------------------------------------------------- + void CActorPed::Destroy() { DWORD dwPedPtr = (DWORD)m_pPed; diff --git a/saco/game/actorped.h b/saco/game/actorped.h index fdd5871..6cc5bf6 100644 --- a/saco/game/actorped.h +++ b/saco/game/actorped.h @@ -9,6 +9,7 @@ public: // Constructor/Destructor. CActorPed(int iSkin, float fPosX, float fPosY, float fPosZ, float fRotation = 0.0f); + virtual ~CActorPed(); void Destroy();