Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 5, 2010, 6:26:54 PM (15 years ago)
Author:
dafrick
Message:

Additional documentation, code niceifying and potential bug fixing. Also: Renamed DroppedItem to DroppedPickup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup3/src/modules/pickup/PickupCollectionIdentifier.cc

    r6474 r6475  
    4444    }
    4545
    46     int PickupCollectionIdentifier::compare(const PickupIdentifier& identifier) const
     46    int PickupCollectionIdentifier::compare(const PickupIdentifier* identifier) const
    4747    {
    48         PickupIdentifier* temp = const_cast<PickupIdentifier*>(&identifier);
     48        PickupIdentifier* temp = const_cast<PickupIdentifier*>(identifier);
    4949        const PickupCollectionIdentifier* collectionIdentifier = dynamic_cast<PickupCollectionIdentifier*>(temp);
    5050        if(collectionIdentifier == NULL)
     
    6060        {
    6161           
    62             if((*it)->compare(**it2) < 0)
     62            if((*it)->compare(*it2) < 0)
    6363                return -1;
    64             if((*it2)->compare(**it) < 0)
     64            if((*it2)->compare(*it) < 0)
    6565                return 1;
    6666        }
Note: See TracChangeset for help on using the changeset viewer.