Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 1575


Ignore:
Timestamp:
Jun 9, 2008, 3:38:46 PM (16 years ago)
Author:
scheusso
Message:

this fixes a bug (segfault) when closing orxonox in client mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/hud/HUD.cc

    r1568 r1575  
    247247            if ((*it)->getObject() == object)
    248248            {
    249                 if (this->nav_->getFocus() == (*it))
    250                     this->nav_->releaseFocus();
     249                if (this->nav_)
     250                  if (this->nav_->getFocus() == (*it))
     251                    this->nav_->releaseFocus();
    251252
    252253                delete (*it);
Note: See TracChangeset for help on using the changeset viewer.