Fix crash on exit when FGCom is not being used.
This commit is contained in:
parent
7827e28ff3
commit
206053722e
1 changed files with 4 additions and 0 deletions
|
@ -330,6 +330,10 @@ void FGCom::update(double dt)
|
|||
|
||||
void FGCom::shutdown()
|
||||
{
|
||||
if( !_enabled ) {
|
||||
return;
|
||||
}
|
||||
|
||||
SG_LOG( SG_IO, SG_INFO, "FGCom shutdown()" );
|
||||
_enabled = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue