mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 07:33:45 +00:00
Revert "update"
This reverts commit 7ac9c55bf1efa23db674dba4f2c7ada7ca344d7d.
This commit is contained in:
parent
5cc2abc9ae
commit
2b14e5448e
3 changed files with 6 additions and 20 deletions
|
|
@ -154,7 +154,7 @@ class ConsoleValue
|
|||
|
||||
TORQUE_FORCEINLINE bool hasAllocatedData() const
|
||||
{
|
||||
return (isConsoleType() && data != NULL);
|
||||
return (type == ConsoleValueType::cvString || isConsoleType()) && data != NULL;
|
||||
}
|
||||
|
||||
const char* getConsoleData() const;
|
||||
|
|
@ -166,12 +166,6 @@ class ConsoleValue
|
|||
dFree(data);
|
||||
data = NULL;
|
||||
}
|
||||
else if (type == ConsoleValueType::cvString)
|
||||
{
|
||||
if (s != StringTable->EmptyString())
|
||||
dFree(s);
|
||||
}
|
||||
type = ConsoleValueType::cvNULL;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue