Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3532 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
Mar 13, 2005, 11:08:57 PM (20 years ago)
Author:
patrick
Message:

orxonox/trunk: fixed a bug in the list template, that has sleepen there until now… now i crushed him… hahaha…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/list.h

    r3483 r3532  
    113113  this->last = el;
    114114
    115   if(this->size == 0) this->first = el;
     115  if(el->prev == NULL) this->first = el; /* if first element */
    116116  else el->prev->next = el;
    117117  this->size++;
     
    134134          else this->currentEl->next->prev = this->currentEl->prev;
    135135
    136           te = this->currentEl->next;
     136          te = this->currentEl->next;  // for what am i doing this?
    137137          delete this->currentEl;
    138138          this->currentEl = te;
Note: See TracChangeset for help on using the changeset viewer.