Use correct delete here

This commit is contained in:
Silent 2018-10-19 18:56:37 +02:00
parent 8f6fa047e2
commit b3c95bb519
No known key found for this signature in database
GPG key ID: AE53149BB0C45AF1
2 changed files with 3 additions and 3 deletions

View file

@ -33,7 +33,7 @@ void CVehicleModelInfo::Shutdown()
{ {
CBaseModelInfo::Shutdown(); CBaseModelInfo::Shutdown();
delete m_dirtMaterials; delete[] m_dirtMaterials;
m_dirtMaterials = nullptr; m_dirtMaterials = nullptr;
delete m_apPlateMaterials; delete m_apPlateMaterials;

View file

@ -232,8 +232,8 @@ struct PlateMaterialsData // Added in SilentPatch
~PlateMaterialsData() ~PlateMaterialsData()
{ {
delete m_plates; delete[] m_plates;
delete m_platebacks; delete[] m_platebacks;
} }
}; };