mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Mem fix
-Data chunker was leaking, (my bad) fixed -Added != operator to scene container for std:c++17 conformance.
This commit is contained in:
parent
4b2e3aac43
commit
09b1e9783a
2 changed files with 19 additions and 3 deletions
|
|
@ -91,7 +91,14 @@ void DataChunker::freeBlocks(bool keepOne)
|
|||
mCurBlock = temp;
|
||||
}
|
||||
|
||||
if (mCurBlock)
|
||||
if (!keepOne)
|
||||
{
|
||||
if (mCurBlock)
|
||||
dFree(mCurBlock);
|
||||
|
||||
mCurBlock = NULL;
|
||||
}
|
||||
else if (mCurBlock)
|
||||
{
|
||||
mCurBlock->curIndex = 0;
|
||||
mCurBlock->next = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue