Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 26, 2009, 10:19:14 PM (16 years ago)
Author:
landauf
Message:

replaced delete with destroy() in gamestates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core5/src/modules/gamestates/GSMainMenu.cc

    r5738 r5799  
    6565
    6666        this->scene_->getSceneManager()->destroyCamera(this->camera_);
    67         delete this->scene_;
     67        this->scene_->destroy();
    6868    }
    6969
     
    108108    void GSMainMenu::deactivate()
    109109    {
    110         delete this->ambient_;
     110        this->ambient_->destroy();
    111111
    112112        InputManager::getInstance().leaveState("mainMenu");
Note: See TracChangeset for help on using the changeset viewer.