Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 7, 2010, 10:55:23 AM (15 years ago)
Author:
dafrick
Message:

More bug fixes.

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

Legend:

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

    r6477 r6478  
    4848    Pickupable::Pickupable()
    4949    {
    50         RegisterRootObject(Pickupable);
    51 
    5250        this->used_ = false;
    5351        this->pickedUp_ = false;
     52       
     53        RegisterRootObject(Pickupable);
     54       
    5455        this->carrier_ = NULL;
    5556       
     
    6667            this->setUsed(false);
    6768       
    68         if(this->isPickedUp())
     69        if(this->isPickedUp() && this->getCarrier() != NULL)
    6970        {
    7071            this->getCarrier()->drop(this, false);
  • code/branches/pickup3/src/orxonox/pickup/PickupIdentifier.cc

    r6475 r6478  
    111111    bool PickupIdentifier::addParameter(std::string & name, std::string & value)
    112112    {
     113        COUT(1) << "PickupIdentifier " << name << ", " << value << std::endl;
     114       
    113115        if(!(this->parameters_.find(name) == this->parameters_.end()))
    114116        {
    115             COUT(2) << "Request for adding a parameter that already exists for the PickupIdentififer was denied." << std::endl;
     117            COUT(2) << "Request for adding a parameter that already exists for the PickupIdentififer was denied. name: '" << name << "', value: '" << value << "'."<< std::endl;
    116118            return false;
    117119        }
Note: See TracChangeset for help on using the changeset viewer.