mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-03 04:20:30 +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
|
|
@ -504,7 +504,7 @@ void UndoManager::popCompound( bool discard )
|
|||
DefineConsoleMethod(UndoAction, addToManager, void, (const char * undoManager), (""), "action.addToManager([undoManager])")
|
||||
{
|
||||
UndoManager *theMan = NULL;
|
||||
if(undoManager != "")
|
||||
if (dStrcmp(undoManager, "") != 0)
|
||||
{
|
||||
SimObject *obj = Sim::findObject(undoManager);
|
||||
if(obj)
|
||||
|
|
@ -582,7 +582,7 @@ DefineConsoleMethod( UndoManager, popCompound, void, ( bool discard ), (false),
|
|||
{
|
||||
if( !object->getCompoundStackDepth() )
|
||||
{
|
||||
Con::errorf( "UndoManager::popCompound - no compound on stack" );
|
||||
Con::errorf( "UndoManager::popCompound - no compound on stack (%s) ",object->getName() );
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue