mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Simplify buffer check when adding a registered variable
This commit is contained in:
parent
15169eab9f
commit
e5c28b4d7f
1 changed files with 1 additions and 2 deletions
|
|
@ -693,8 +693,7 @@ Dictionary::Entry* Dictionary::addVariable( const char *name,
|
|||
Entry *ent = add(StringTable->insert(name));
|
||||
|
||||
if ( ent->value.type <= ConsoleValue::TypeInternalString &&
|
||||
ent->value.sval != typeValueEmpty &&
|
||||
ent->value.type != ConsoleValue::TypeInternalStackString && ent->value.type != ConsoleValue::TypeInternalStringStackPtr )
|
||||
ent->value.bufferLen > 0 )
|
||||
dFree(ent->value.sval);
|
||||
|
||||
ent->value.type = type;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue