Fixed bad string compares and simdictionary

This commit is contained in:
Vincent Gee 2014-11-04 19:51:13 -05:00
parent acb192e2a5
commit 9907c4592e
30 changed files with 169 additions and 202 deletions

View file

@ -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;
}