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;
|
return;
|
||||||
|
|
||||||
FGNasalSys *nas = (FGNasalSys *)globals->get_subsystem("nasal");
|
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;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (_unload) {
|
if (_unload) {
|
||||||
const char *s = _unload->getStringValue();
|
const char *s = _unload->getStringValue();
|
||||||
|
|
Loading…
Reference in a new issue