mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-27 10:33:50 +00:00
Revert "Update console.h"
This reverts commit ffac34b2d3eb24ec6a460f2cf77e172543c15772.
This commit is contained in:
parent
0df6e99a75
commit
8fc91bbc1e
1 changed files with 6 additions and 19 deletions
|
|
@ -161,29 +161,16 @@ class ConsoleValue
|
|||
|
||||
TORQUE_FORCEINLINE void cleanupData()
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case ConsoleValueType::cvConsoleValueType:
|
||||
if (ct)
|
||||
{
|
||||
delete ct;
|
||||
ct = nullptr;
|
||||
}
|
||||
break;
|
||||
case ConsoleValueType::cvString:
|
||||
if (s && s != StringTable->EmptyString())
|
||||
dFree(s);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (data != NULL)
|
||||
if (hasAllocatedData())
|
||||
{
|
||||
dFree(data);
|
||||
data = NULL;
|
||||
}
|
||||
|
||||
else if (type == ConsoleValueType::cvString)
|
||||
{
|
||||
if (s != StringTable->EmptyString())
|
||||
dFree(s);
|
||||
}
|
||||
type = ConsoleValueType::cvNULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue