mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2025-01-31 06:57:28 +05:00
Use correct delete here
This commit is contained in:
parent
8f6fa047e2
commit
b3c95bb519
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ void CVehicleModelInfo::Shutdown()
|
|||
{
|
||||
CBaseModelInfo::Shutdown();
|
||||
|
||||
delete m_dirtMaterials;
|
||||
delete[] m_dirtMaterials;
|
||||
m_dirtMaterials = nullptr;
|
||||
|
||||
delete m_apPlateMaterials;
|
||||
|
|
|
@ -232,8 +232,8 @@ struct PlateMaterialsData // Added in SilentPatch
|
|||
|
||||
~PlateMaterialsData()
|
||||
{
|
||||
delete m_plates;
|
||||
delete m_platebacks;
|
||||
delete[] m_plates;
|
||||
delete[] m_platebacks;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue