Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8411


Ignore:
Timestamp:
May 6, 2011, 4:40:30 AM (9 years ago)
Author:
rgrieder
Message:

Properly initialise all members in CEGUI. Avoid segfaults when an exception is thrown.

Location:
code/trunk/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/GUIManager.cc

    r8351 r8411  
    166166        , resourceProvider_(NULL)
    167167#ifndef ORXONOX_OLD_CEGUI
     168        , rqListener_(NULL)
    168169        , imageCodec_(NULL)
    169170#endif
     
    171172        , scriptModule_(NULL)
    172173        , guiSystem_(NULL)
     174        , ceguiLogger_(NULL)
     175        , rootWindow_(NULL)
     176        , hudRootWindow_(NULL)
     177        , menuRootWindow_(NULL)
    173178        , camera_(NULL)
    174179    {
  • code/trunk/src/libraries/core/GUIManager.h

    r8351 r8411  
    165165#else
    166166        CEGUI::OgreRenderer*                 guiRenderer_;      //!< CEGUI's interface to the Ogre Engine
     167        CEGUI::OgreResourceProvider*         resourceProvider_; //!< CEGUI's resource provider
    167168        Ogre::RenderQueueListener*           rqListener_;       //!< RQ listener so we can draw UNDER Ogre overlays
    168         CEGUI::OgreResourceProvider*         resourceProvider_; //!< CEGUI's resource provider
    169169        CEGUI::OgreImageCodec*               imageCodec_;
    170170#endif
Note: See TracChangeset for help on using the changeset viewer.