diff --git a/saco/unkclass14.cpp b/saco/unkclass14.cpp index 4ff02e7..86bec7a 100644 --- a/saco/unkclass14.cpp +++ b/saco/unkclass14.cpp @@ -10,6 +10,12 @@ CUnkClass14::CUnkClass14(IDirect3DDevice9 *pD3DDevice) RestoreDeviceObjects(); } +void CUnkClass14::DeleteDeviceObjects() +{ + SAFE_RELEASE(m_pD3DSprite2); + SAFE_RELEASE(m_pD3DSprite1); +} + void CUnkClass14::RestoreDeviceObjects() { D3DXCreateSprite(m_pD3DDevice, &m_pD3DSprite1); diff --git a/saco/unkclass14.h b/saco/unkclass14.h index 5adec7d..0b0f23c 100644 --- a/saco/unkclass14.h +++ b/saco/unkclass14.h @@ -11,5 +11,6 @@ private: public: CUnkClass14(IDirect3DDevice9 *pD3DDevice); + void DeleteDeviceObjects(); void RestoreDeviceObjects(); };