diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index 486f5a189..ae3d51631 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -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 script " + "without Nasal subsystem present."); return; + } if (_unload) { const char *s = _unload->getStringValue();