1
0
Fork 0

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:
James Turner 2013-12-21 15:31:10 +00:00
parent c717b70231
commit 43358a2418

View file

@ -433,7 +433,8 @@ FGRenderer::~FGRenderer()
} }
// replace the viewer's scene completely // replace the viewer's scene completely
getViewer()->setSceneData(new osg::Group); if (getViewer())
getViewer()->setSceneData(new osg::Group);
#ifdef FG_JPEG_SERVER #ifdef FG_JPEG_SERVER