From 31d3fd02099bea188bbac5179026c84de577d1a1 Mon Sep 17 00:00:00 2001 From: mfranz Date: Thu, 9 Mar 2006 17:32:24 +0000 Subject: [PATCH] add alert message --- src/Scripting/NasalSys.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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();