Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 15, 2009, 12:55:45 PM (15 years ago)
Author:
dafrick
Message:

Some changes to QuestManager and NotificationManager by Reto's request. (Make them more consistent as Singletons)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/questsystem5/src/orxonox/objects/quest/QuestManager.cc

    r2785 r2786  
    5656        RegisterRootObject(QuestManager);
    5757
     58        assert(singletonRef_s == 0);
     59        singletonRef_s = this;
    5860    }
    5961
     
    7577    /*static*/ QuestManager & QuestManager::getInstance()
    7678    {
    77         if(singletonRef_s == NULL)
    78         {
    79             singletonRef_s = new QuestManager();
    80         }
     79        assert(singletonRef_s);
    8180        return *singletonRef_s;
    8281    }
Note: See TracChangeset for help on using the changeset viewer.