Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 24, 2008, 10:40:22 PM (16 years ago)
Author:
rgrieder
Message:
  • privatised InputState c'tors
  • added destruction code for GUIManager
  • fixed some issues and bugs
  • found 2400 memory leaks ;)
  • haven't done anything about it
  • converted GUIManager to Ogre Singleton
  • added NULL checkers in Loader
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/Loader.cc

    r1625 r1646  
    6464    void Loader::add(const Level* level, const ClassTreeMask& mask)
    6565    {
     66        if (!level)
     67            return;
    6668        Loader::levels_s.insert(Loader::levels_s.end(), std::pair<const Level*, ClassTreeMask>(level, mask));
    6769    }
     
    6971    void Loader::remove(const Level* level)
    7072    {
     73        if (!level)
     74            return;
    7175        for (std::vector<std::pair<const Level*, ClassTreeMask> >::iterator it = Loader::levels_s.begin(); it != Loader::levels_s.end(); ++it)
    7276        {
     
    108112    bool Loader::load(const Level* level, const ClassTreeMask& mask)
    109113    {
     114        if (!level)
     115            return false;
     116
    110117        Loader::currentMask_s = level->getMask() * mask;
    111118
     
    165172    void Loader::unload(const Level* level, const ClassTreeMask& mask)
    166173    {
     174        if (!level)
     175            return;
    167176        for (Iterator<BaseObject> it = ObjectList<BaseObject>::begin(); it; )
    168177        {
Note: See TracChangeset for help on using the changeset viewer.