Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 19, 2009, 10:59:59 PM (16 years ago)
Author:
rgrieder
Message:

Fixed three memory leaks and a bug.
@beni: Is deleting the "startGame" console command a problem or did we just forget to remove the comment characters?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gui/GUIManager.cc

    r2896 r2927  
    252252    void GUIManager::setCamera(Ogre::Camera* camera)
    253253    {
    254         this->guiRenderer_->setTargetSceneManager(camera->getSceneManager());
     254        if (camera == NULL)
     255            this->guiRenderer_->setTargetSceneManager(0);
     256        else
     257            this->guiRenderer_->setTargetSceneManager(camera->getSceneManager());
    255258    }
    256259
Note: See TracChangeset for help on using the changeset viewer.