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,6 +433,7 @@ FGRenderer::~FGRenderer()
}
// replace the viewer's scene completely
if (getViewer())
getViewer()->setSceneData(new osg::Group);