Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8303


Ignore:
Timestamp:
Apr 22, 2011, 8:11:10 PM (14 years ago)
Author:
dafrick
Message:

Another memory leak.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/PickupCarrier.cc

    r8302 r8303  
    9696            return true;
    9797
     98        bool isTarget = false;
    9899        // Go recursively through all children to check whether they are a target.
    99100        std::vector<PickupCarrier*>* children = this->getCarrierChildren();
     
    101102        {
    102103            if((*it)->isTarget(pickup))
    103                 return true;
     104            {
     105                isTarget = true;
     106                break;
     107            }
    104108        }
    105109
Note: See TracChangeset for help on using the changeset viewer.