Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5120 in orxonox.OLD for trunk/src/lib/util


Ignore:
Timestamp:
Aug 25, 2005, 12:08:04 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better calculation of the Line-Positions in the Shell

File:
1 edited

Legend:

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

    r5118 r5120  
    465465 * grabs the iterator entity from another iterator
    466466 * @param iterator the iterator to grab the local currentEl from
    467  * @returns the grabbed element (current).
     467 * @returns the grabbed element (current). NULL if not found, or not defined
     468 *
     469 * Both iterators must be from the same List!
    468470 */
    469471template<class T>
    470472    T* tIterator<T>::iteratorElement(const tIterator<T>* iterator)
    471473{
    472   if (iterator != NULL)
     474  if (iterator != NULL && iterator->list == this->list)
    473475  {
    474476    this->currentEl = iterator->currentEl;
Note: See TracChangeset for help on using the changeset viewer.