Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 8, 2010, 9:17:22 PM (15 years ago)
Author:
dafrick
Message:

Fixed bug in clone() (Argument needed to be as reference). Pickups seem to be working now (after very sporadic testing), more systematic testing (and probably still some more bug fixes) will follow.

Location:
code/branches/pickup3/src/modules/pickup/items
Files:
2 edited

Legend:

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

    r6496 r6497  
    280280        A pointer to the Orxonox class.
    281281    */
    282     void HealthPickup::clone(OrxonoxClass* item)
     282    void HealthPickup::clone(OrxonoxClass*& item)
    283283    {
    284284        if(item == NULL)
  • code/branches/pickup3/src/modules/pickup/items/HealthPickup.h

    r6496 r6497  
    7474           
    7575            virtual void changedUsed(void); //!< Is called when the pickup has transited from used to unused or the other way around.
    76             virtual void clone(OrxonoxClass* item); //!< Creates a duplicate of the input OrxonoxClass.
     76            virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass.
    7777           
    7878            /**
Note: See TracChangeset for help on using the changeset viewer.