Skip to content

Commit 78f1d0b

Browse files
committed
Fixed engineLoadDFF/TXD raw buffer not being deallocated after import
1 parent 7cf9dc4 commit 78f1d0b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Client/mods/deathmatch/logic/CClientDFF.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RpClump* CClientDFF::GetLoadedClump(ushort usModelId)
6363
info.pClump = g_pGame->GetRenderWare()->ReadDFF(NULL, m_RawDataBuffer, usModelId, CClientVehicleManager::IsValidModel(usModelId));
6464

6565
// Remove raw data from memory (can only do one replace when using raw data)
66-
m_RawDataBuffer.Clear();
66+
m_RawDataBuffer = CBuffer();
6767
}
6868
}
6969

Client/mods/deathmatch/logic/CClientTXD.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ bool CClientTXD::Import(unsigned short usModelID)
109109
if (m_bIsRawData && !m_bUsingFileDataForClothes)
110110
{
111111
// This means the texture can't be used for clothes now
112-
m_FileData.Clear();
112+
m_FileData = CBuffer();
113113
}
114114

115115
// Have we got textures and haven't already imported into this model?

0 commit comments

Comments
 (0)