Changeset 5146 in orxonox.OLD for trunk/src/util
- Timestamp:
- Aug 27, 2005, 2:34:18 AM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/shell_command.cc
r5145 r5146 52 52 for (unsigned int i = 0; i < paramCount; i++) 53 53 { 54 parameters[i] = va_arg(parameters, long);55 56 switch ( parameters[i])54 this->parameters[i] = va_arg(parameters, long); 55 56 switch (this->parameters[i]) 57 57 { 58 58 case ParameterBool: … … 145 145 const char* commandBegin = executionString + strlen(elem->className); 146 146 147 PRINTF( 5)("Class %s matches\n", elem->className);147 PRINTF(4)("Class %s matches\n", elem->className); 148 148 BaseObject* objectPointer = NULL; 149 149 if (elem->isSingleton) … … 175 175 if(!strncmp(commandBegin, enumBO->getName(), strlen(enumBO->getName()))) 176 176 { 177 PRINTF( 5)("Object %s matches\n", enumBO->getName());177 PRINTF(4)("Object %s matches\n", enumBO->getName()); 178 178 objectPointer = enumBO; 179 179 break; … … 201 201 paramBegin = commandBegin + strlen(elem->getName()); 202 202 203 if (objectPointer != NULL )203 if (objectPointer != NULL && paramBegin != NULL) 204 204 { 205 205 elem->executeCommand(objectPointer, paramBegin); -
trunk/src/util/shell_command.h
r5145 r5146 69 69 70 70 #define ShellCommandExecute1(t1) \ 71 else if (this->paramCount == 1 && this->parameters[0] &t1##_PARAM) \71 else if (this->paramCount == 1 && this->parameters[0] == t1##_PARAM) \ 72 72 (dynamic_cast<T*>(object)->*functionPointer_1_##t1)(0)//t1##_FUNC(parameters, 0)) 73 73
Note: See TracChangeset
for help on using the changeset viewer.