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();
delete m_dirtMaterials;
delete[] m_dirtMaterials;
m_dirtMaterials = nullptr;
delete m_apPlateMaterials;

View File

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