Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 26, 2009, 6:06:26 PM (15 years ago)
Author:
landauf
Message:

"Fixed" 'Can't assign NULL identifier' error message and replaced it with a more meaningful message. Please add a munition-name in Rocket.cc soon.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation2/src/orxonox/weaponsystem/WeaponMode.cc

    r6153 r6165  
    150150    {
    151151        this->munitionname_ = munitionname;
    152         this->munitiontype_ = ClassByString(this->munitionname_);
     152        Identifier* identifier = ClassByString(this->munitionname_);
     153        if (identifier)
     154            this->munitiontype_ = identifier;
     155        else
     156            COUT(2) << "Warning: No munition class defined in WeaponMode " << this->getName() << std::endl;
    153157        this->updateMunition();
    154158    }
Note: See TracChangeset for help on using the changeset viewer.