]> git.mxchange.org Git - flightgear.git/blobdiff - src/Scripting/NasalPositioned_cppbind.cxx
Reset: do re-init Ghost bindings.
[flightgear.git] / src / Scripting / NasalPositioned_cppbind.cxx
index cc3568c4b67f8ee16984e675774f12ea3b15da28..8d51624a88ea46daed72e174daca23e53841fb9c 100644 (file)
@@ -459,8 +459,6 @@ static naRef f_sortByRange(nasal::CallContext ctx)
 //------------------------------------------------------------------------------
 naRef initNasalPositioned_cppbind(naRef globalsRef, naContext c)
 {
-    if (!NasalPositioned::isInit()) {
-    
   NasalPositioned::init("Positioned")
     .member("id", &FGPositioned::ident)
     .member("ident", &FGPositioned::ident) // TODO to we really need id and ident?
@@ -504,7 +502,6 @@ naRef initNasalPositioned_cppbind(naRef globalsRef, naContext c)
     .method("getStar", &FGAirport::findSTARWithIdent)
     .method("getIAP", &FGAirport::findApproachWithIdent)
     .method("tostring", &FGAirport::toString);
-  }
     
   nasal::Hash globals(globalsRef, c),
               positioned( globals.createHash("positioned") );