mirror of
https://github.com/CookiePLMonster/SilentPatch.git
synced 2024-11-25 14:52:30 +01:00
Use correct delete here
This commit is contained in:
parent
8f6fa047e2
commit
b3c95bb519
@ -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 New Issue
Block a user