From: mfranz Date: Thu, 9 Mar 2006 17:32:24 +0000 (+0000) Subject: add alert message X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=31d3fd02099bea188bbac5179026c84de577d1a1;p=flightgear.git add alert message --- 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();