mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-14 00:45:22 +00:00
Fixed bad string compares and simdictionary
This commit is contained in:
parent
acb192e2a5
commit
9907c4592e
30 changed files with 169 additions and 202 deletions
|
|
@ -648,7 +648,7 @@ DefineConsoleMethod(Settings, setValue, void, (const char * settingName, const c
|
|||
{
|
||||
const char *fieldName = StringTable->insert( settingName );
|
||||
|
||||
if( value != "")
|
||||
if (dStrcmp(value, "") != 0)
|
||||
object->setValue( fieldName, value );
|
||||
else
|
||||
object->setValue( fieldName );
|
||||
|
|
@ -664,9 +664,9 @@ DefineConsoleMethod(Settings, value, const char*, (const char * settingName, con
|
|||
{
|
||||
const char *fieldName = StringTable->insert( settingName );
|
||||
|
||||
if(defaultValue != "")
|
||||
if (dStrcmp(defaultValue, "") != 0)
|
||||
return object->value( fieldName, defaultValue );
|
||||
else if(settingName != "")
|
||||
else if (dStrcmp(settingName, "") != 0)
|
||||
return object->value( fieldName );
|
||||
|
||||
return "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue