Changeset 8302 for code/trunk/src
- Timestamp:
- Apr 22, 2011, 7:53:36 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/interfaces/PickupCarrier.cc
r8300 r8302 126 126 return this; 127 127 128 PickupCarrier* target = NULL; 128 129 // Go recursively through all children to check whether they are the target. 129 130 std::vector<PickupCarrier*>* children = this->getCarrierChildren(); … … 131 132 { 132 133 if(pickup->isTarget(*it)) 133 return *it; 134 { 135 target = *it; 136 break; 137 } 134 138 } 135 139 … … 137 141 delete children; 138 142 139 return NULL;143 return target; 140 144 } 141 145
Note: See TracChangeset
for help on using the changeset viewer.