Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8300


Ignore:
Timestamp:
Apr 22, 2011, 6:32:29 PM (9 years ago)
Author:
dafrick
Message:

Apparently bug needs some more fixing.

File:
1 edited

Legend:

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

    r8297 r8300  
    7373            (*it)->carrierDestroyed();
    7474            it = this->pickups_.begin();
    75             if(temp == *it) // Infinite loop avoidance, in case the pickup wasn't removed from the carrier somewhere in the carrierDestroy() procedure.
     75            if(it != this->pickups_.end() && temp == *it) // Infinite loop avoidance, in case the pickup wasn't removed from the carrier somewhere in the carrierDestroy() procedure.
    7676            {
    7777                COUT(2) << "Oops. In a PickupCarrier, while cleaning up, a Pickupable (&" << temp << ") didn't unregister itself as it should have." << std::endl;;
Note: See TracChangeset for help on using the changeset viewer.