Changeset 7199 in orxonox.OLD for trunk/src/lib/util/executor/executor.cc
- Timestamp:
- Mar 8, 2006, 10:46:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/util/executor/executor.cc
r7198 r7199 45 45 this->setClassID(CL_EXECUTOR, "Executor"); 46 46 47 48 47 // What Parameters have we got 49 48 this->defaultValue[0] = param0; … … 53 52 this->defaultValue[4] = param4; 54 53 54 this->paramCount = 0; 55 55 for (unsigned int i = 0; i < FUNCTOR_MAX_ARGUMENTS; i++) 56 56 { … … 61 61 } 62 62 } 63 assert (paramCount <= FUNCTOR_MAX_ARGUMENTS);64 63 } 65 64 … … 109 108 { 110 109 if (*value[i] != MT_NULL) 111 { 112 if (this->defaultValue[i].getType() == value[i]->getType()) 113 { 114 this->defaultValue[i] = *value[i]; 115 } 116 else 117 { 118 PRINTF(1)("Unable to set this Value, as it is not of type %s\n", MultiType::MultiTypeToString(this->defaultValue[i].getType())); 119 } 120 } 110 this->defaultValue[i].setValueOf(*value[i]); 121 111 } 122 112 return this;
Note: See TracChangeset
for help on using the changeset viewer.