Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 13, 2010, 10:39:54 PM (15 years ago)
Author:
dafrick
Message:

Resolved bug, that caused orxonox to crash whenever a level with pickups was loaded twice in one session.
Also some more debug/info output, commenting and cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/Pickupable.cc

    r6540 r6725  
    4646        Constructor. Registers the objects and initializes its member variables.
    4747    */
    48     Pickupable::Pickupable() : used_(false), pickedUp_(false)
     48    Pickupable::Pickupable() : pickupIdentifier_(NULL), used_(false), pickedUp_(false)
    4949    {       
    5050        RegisterRootObject(Pickupable);
     
    6969            this->setCarrier(NULL);
    7070        }
     71       
     72        if(this->pickupIdentifier_ != NULL)
     73            this->pickupIdentifier_->destroy();
    7174    }
    7275   
Note: See TracChangeset for help on using the changeset viewer.