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