]> git.mxchange.org Git - flightgear.git/commitdiff
NasalSys: process nasal::Ghost deletion queue.
authorThomas Geymayer <tomgey@gmail.com>
Sun, 15 Jun 2014 14:36:35 +0000 (16:36 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Sun, 15 Jun 2014 14:36:35 +0000 (16:36 +0200)
src/Scripting/NasalSys.cxx

index cc56043d570332d7e9f7ef2b6e98b68a424b6dc1..7a1f9fe63c663007bf1eacda2e4dc89caba78a0b 100644 (file)
@@ -926,6 +926,9 @@ void FGNasalSys::update(double)
         _unloadList.pop()->unload();
     }
 
+    // Destroy all queued ghosts
+    nasal::ghostProcessDestroyList();
+
     // The global context is a legacy thing.  We use dynamically
     // created contexts for naCall() now, so that we can call them
     // recursively.  But there are still spots that want to use it for