From b3c95bb519b3aec7cf2b505cb410a7873750b1dd Mon Sep 17 00:00:00 2001 From: Silent Date: Fri, 19 Oct 2018 18:56:37 +0200 Subject: [PATCH] Use correct delete here --- SilentPatchSA/ModelInfoSA.cpp | 2 +- SilentPatchSA/ModelInfoSA.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/SilentPatchSA/ModelInfoSA.cpp b/SilentPatchSA/ModelInfoSA.cpp index 31fa59d..27db480 100644 --- a/SilentPatchSA/ModelInfoSA.cpp +++ b/SilentPatchSA/ModelInfoSA.cpp @@ -33,7 +33,7 @@ void CVehicleModelInfo::Shutdown() { CBaseModelInfo::Shutdown(); - delete m_dirtMaterials; + delete[] m_dirtMaterials; m_dirtMaterials = nullptr; delete m_apPlateMaterials; diff --git a/SilentPatchSA/ModelInfoSA.h b/SilentPatchSA/ModelInfoSA.h index 5d0b68b..bb76267 100644 --- a/SilentPatchSA/ModelInfoSA.h +++ b/SilentPatchSA/ModelInfoSA.h @@ -232,8 +232,8 @@ struct PlateMaterialsData // Added in SilentPatch ~PlateMaterialsData() { - delete m_plates; - delete m_platebacks; + delete[] m_plates; + delete[] m_platebacks; } };