20,741
edits
Line 150: | Line 150: | ||
naRef initNasalDemo(naRef globals, naContext c) | naRef initNasalDemo(naRef globals, naContext c) | ||
{ | { | ||
if(NasalTest::isInit() ) return; // avoid re-init during reset/re-init | if(NasalTest::isInit() ) return naNil(); // avoid re-init during reset/re-init | ||
// This only needs to be called once for each ghost, so make sure to use the ::isInit() check in FGNasalSys::init() | // This only needs to be called once for each ghost, so make sure to use the ::isInit() check in FGNasalSys::init() |