Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5334 in orxonox.OLD for trunk/src/util/loading


Ignore:
Timestamp:
Oct 9, 2005, 12:23:57 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed errors made in the fixing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/load_param.cc

    r5332 r5334  
    7474      for(int i = 0; i < paramCount; i++)
    7575      {
     76        defaultVal[0] = '\0';
    7677          // parameters parsed
    7778        int tmpType = va_arg (types, int);
    7879        this->paramDesc->types[i] = tmpType;
    79 
    80         //! @todo SWITCH CASE WITH l_[TYPE]_TYPE -> much faster (more usefull)
    8180        switch (tmpType)
    8281        {
    8382          case ParameterInt:
    84             sprintf(defaultVal, "%d", va_arg(types, l_INT_TYPE));
     83            sprintf(defaultVal, "%d", va_arg(types, int));
    8584            break;
    8685          case ParameterLong:
     
    9796            break;
    9897        }
    99 
    10098        this->paramDesc->defaultValues[i] = new char[strlen(defaultVal)+1];
    10199        strcpy(this->paramDesc->defaultValues[i], defaultVal);
Note: See TracChangeset for help on using the changeset viewer.