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; } };