- Timestamp:
- Sep 28, 2010, 5:31:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupCollectionIdentifier.cc
r7401 r7494 67 67 int PickupCollectionIdentifier::compare(const PickupIdentifier* identifier) const 68 68 { 69 assert(identifier); 70 69 71 // Slight un-niceity to cast the PickupIdentifier to a PickupCollectionIdentifier. 70 72 PickupIdentifier* temp = const_cast<PickupIdentifier*>(identifier); 71 const PickupCollectionIdentifier* collectionIdentifier = dynamic_cast<PickupCollectionIdentifier*>(temp);73 const PickupCollectionIdentifier* collectionIdentifier = orxonox_cast<PickupCollectionIdentifier*>(temp); 72 74 73 75 // If the input PickupIdentifier 'identifier' is no PickupCollectionIdentifier then just the two PickupIdentifiers are compared. … … 92 94 } 93 95 94 // !Means they are equal.96 // Means they are equal. 95 97 return 0; 96 98 }
Note: See TracChangeset
for help on using the changeset viewer.