Fix a crash where we show a message-box on start.
Don't assume we got as far as creating a viewer when destroying the renderer.
This commit is contained in:
parent
c717b70231
commit
43358a2418
1 changed files with 2 additions and 1 deletions
|
@ -433,7 +433,8 @@ FGRenderer::~FGRenderer()
|
|||
}
|
||||
|
||||
// replace the viewer's scene completely
|
||||
getViewer()->setSceneData(new osg::Group);
|
||||
if (getViewer())
|
||||
getViewer()->setSceneData(new osg::Group);
|
||||
|
||||
|
||||
#ifdef FG_JPEG_SERVER
|
||||
|
|
Loading…
Reference in a new issue