Fix segfault on invalid command line arguments
If FlightGear terminated before the FDM was instantiated it crashed.
This commit is contained in:
parent
1d91468ddc
commit
1aa484aee5
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ void FDMShell::bind()
|
||||||
|
|
||||||
void FDMShell::unbind()
|
void FDMShell::unbind()
|
||||||
{
|
{
|
||||||
_impl->unbind();
|
if( _impl ) _impl->unbind();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FDMShell::update(double dt)
|
void FDMShell::update(double dt)
|
||||||
|
|
Loading…
Add table
Reference in a new issue