This isn't the case if the model is destroyed on fgfs exit. To make <unload>
work under these circumstances, one would have to reorder subsystem removal,
but this doesn't seem overly useful, so we'll do it when we really need it.
return;
FGNasalSys *nas = (FGNasalSys *)globals->get_subsystem("nasal");
+ if (!nas)
+ return;
+
if (_unload) {
const char *s = _unload->getStringValue();
nas->createModule(_module.c_str(), _module.c_str(), s, strlen(s));