1
0
Fork 0

add alert message

This commit is contained in:
mfranz 2006-03-09 17:32:24 +00:00
parent b9d3c3ccb6
commit 31d3fd0209

View file

@ -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();