Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6492 for code


Ignore:
Timestamp:
Mar 8, 2010, 12:49:25 PM (15 years ago)
Author:
dafrick
Message:

Small error in Pickup Spawner.

Location:
code/branches/pickup3/src
Files:
2 edited

Legend:

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

    r6486 r6492  
    293293            Pickupable* pickup = this->getPickup();
    294294           
    295             if(target != NULL || pickup != NULL)
    296             {
    297                 if(carrier->pickup(pickup))
     295            if(target != NULL && pickup != NULL)
     296            {
     297                if(target->pickup(pickup))
    298298                {
    299299                    this->decrementSpawnsRemaining();
  • code/branches/pickup3/src/orxonox/interfaces/Pickupable.cc

    r6490 r6492  
    196196       
    197197        this->setCarrier(NULL);
     198        //TODO: possible problem.
    198199        if(!created)
    199200            this->destroy();
Note: See TracChangeset for help on using the changeset viewer.