Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 8, 2012, 6:31:46 PM (12 years ago)
Author:
landauf
Message:

probably a bugfix: PickupIdentifier compared only the first parameter in the map.
also some performance enhancements

File:
1 edited

Legend:

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

    r9297 r9314  
    9292            const PickupIdentifier* id2 = (*it2)->getPickupIdentifier();
    9393
    94             if(id1->compare(id2) < 0)
    95                 return -1;
    96             if(id2->compare(id1) < 0)
    97                 return 1;
     94            int result = id1->compare(id2);
     95            if(result != 0)
     96                return result;
    9897        }
    9998
Note: See TracChangeset for help on using the changeset viewer.