Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 15, 2010, 1:15:11 PM (14 years ago)
Author:
dafrick
Message:

No more seg faults with pickups (at least that's what I hope. ;))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/PickupManager.cc

    r6725 r6728  
    198198    {
    199199        Pickupable* pickup = carrier->getPickup(index);
    200         carrier->drop(pickup);
     200        if(pickup != NULL)
     201            carrier->drop(pickup);
    201202    }
    202203   
     
    204205    {
    205206        Pickupable* pickup = carrier->getPickup(index);
    206         pickup->setUsed(use);
     207        if(pickup != NULL)
     208            pickup->setUsed(use);
    207209    }
    208210   
Note: See TracChangeset for help on using the changeset viewer.