Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 19, 2016, 5:34:38 PM (8 years ago)
Author:
plehmann
Message:

modified newScriptController to prevent memory leacks caused by tasks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/plehmannFS16/src/orxonox/controllers/NewScriptController.h

    r11187 r11190  
    6868            void printDebug() {orxout() << "fffff" << endl;} // tolua_export
    6969
    70 
    71             void createAndAddTask(Task newTask);
    72 
    7370        private:
    7471            // Information about the player that this ScriptController will
     
    8582
    8683            // List of events to walk through sorted by starting times
    87             std::list<Task> taskList_;
    88 
     84            std::list<Task*> taskList_;
    8985
    9086            //List of Tasks currently active
    91             std::vector<Task> activeTasks_;
     87            std::vector<Task*> activeTasks_;
    9288
    9389            // Time since the creation of this ScriptController object
Note: See TracChangeset for help on using the changeset viewer.