add alert message
This commit is contained in:
parent
b9d3c3ccb6
commit
31d3fd0209
1 changed files with 4 additions and 1 deletions
|
@ -697,8 +697,11 @@ FGNasalModelData::~FGNasalModelData()
|
|||
return;
|
||||
|
||||
FGNasalSys *nas = (FGNasalSys *)globals->get_subsystem("nasal");
|
||||
if (!nas)
|
||||
if (!nas) {
|
||||
SG_LOG(SG_NASAL, SG_ALERT, "Trying to run an <unload> script "
|
||||
"without Nasal subsystem present.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (_unload) {
|
||||
const char *s = _unload->getStringValue();
|
||||
|
|
Loading…
Reference in a new issue