mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
test
this is the fix!!!!!
This commit is contained in:
parent
f452ea9823
commit
b97c8fc980
2 changed files with 5 additions and 9 deletions
|
|
@ -84,18 +84,14 @@ DataChunker::DataBlock::~DataBlock()
|
|||
|
||||
void DataChunker::freeBlocks(bool keepOne)
|
||||
{
|
||||
while(mCurBlock && mCurBlock->next)
|
||||
while (mCurBlock && mCurBlock->next)
|
||||
{
|
||||
DataBlock *temp = mCurBlock->next;
|
||||
DataBlock* temp = mCurBlock->next;
|
||||
dFree(mCurBlock);
|
||||
mCurBlock = temp;
|
||||
}
|
||||
if (!keepOne)
|
||||
{
|
||||
if (mCurBlock) dFree(mCurBlock);
|
||||
mCurBlock = NULL;
|
||||
}
|
||||
else if (mCurBlock)
|
||||
|
||||
if (mCurBlock)
|
||||
{
|
||||
mCurBlock->curIndex = 0;
|
||||
mCurBlock->next = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue