mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Fixed String comparisons.
This commit is contained in:
parent
d6570e3533
commit
2f48f31a6f
5 changed files with 7 additions and 7 deletions
|
|
@ -2201,7 +2201,7 @@ DefineConsoleMethod( PersistenceManager, setDirty, void, ( const char * objName
|
|||
"Mark an existing SimObject as dirty (will be written out when saveDirty() is called).")
|
||||
{
|
||||
SimObject *dirtyObject = NULL;
|
||||
if (objName != "")
|
||||
if (dStrcmp(objName,"") != 0)
|
||||
{
|
||||
if (!Sim::findObject(objName, dirtyObject))
|
||||
{
|
||||
|
|
@ -2387,7 +2387,7 @@ DefineConsoleMethod( PersistenceManager, removeField, void, (const char * objNam
|
|||
|
||||
if (dirtyObject)
|
||||
{
|
||||
if (fieldName != "")
|
||||
if (dStrcmp(fieldName,"") != 0)
|
||||
object->addRemoveField(dirtyObject, fieldName);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue