Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 10:25:03 PM (15 years ago)
Author:
landauf
Message:

replaced delete with destroy() in orxonox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/orxonox/weaponsystem/WeaponPack.cc

    r5738 r5801  
    5454
    5555            while (!this->weapons_.empty())
    56                 delete (*this->weapons_.begin());
     56                (*this->weapons_.begin())->destroy();
    5757
    5858            for (std::set<DefaultWeaponmodeLink*>::iterator it = this->links_.begin(); it != this->links_.end(); )
    59                 delete (*(it++));
     59                (*(it++))->destroy();
    6060        }
    6161    }
Note: See TracChangeset for help on using the changeset viewer.