Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5199 in orxonox.OLD for trunk


Ignore:
Timestamp:
Sep 18, 2005, 3:29:24 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: saver execution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell_command.cc

    r5198 r5199  
    404404      while(elemAL != NULL)
    405405      {
    406         if (elemAL->getName() != NULL && elemAL->getCommand() != NULL && !strcmp(elemAL->getName(), inputSplits.getString(0)))
     406        if (elemAL->getName() != NULL && !strcmp(elemAL->getName(), inputSplits.getString(0)) && elemAL->getCommand() != NULL &&
     407            elemAL->getCommand()->shellClass != NULL )
    407408        {
    408           printf("%s\n", elemAL->getCommand()->shellClass->getName());
    409           elemAL->getCommand()->executeCommand(ClassList::getList(elemAL->getCommand()->shellClass->getName())->firstElement(), "");
    410           return true;
     409          objectList = ClassList::getList(elemAL->getCommand()->shellClass->getName());
     410          if (objectList != NULL)
     411          {
     412            elemAL->getCommand()->executeCommand(objectList->firstElement(), "");
     413            return true;
     414          }
    411415        }
    412416        elemAL = itAL->nextElement();
Note: See TracChangeset for help on using the changeset viewer.