Changeset 8300 for code/trunk/src/orxonox/interfaces
- Timestamp:
- Apr 22, 2011, 6:32:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/interfaces/PickupCarrier.cc
r8297 r8300 73 73 (*it)->carrierDestroyed(); 74 74 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. 76 76 { 77 77 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.