]> git.mxchange.org Git - simgear.git/commitdiff
Reset: allow re-init of Nasal Ghosts.
authorJames Turner <zakalawe@mac.com>
Sat, 23 Nov 2013 20:06:47 +0000 (20:06 +0000)
committerJames Turner <zakalawe@mac.com>
Sat, 23 Nov 2013 20:06:47 +0000 (20:06 +0000)
After discussion with Thomas, reset needs the scenario this assert
was designed to guard against, so removing it for now.

simgear/nasal/cppbind/Ghost.hxx

index 3142979d6cdd8086511b6319f3f5707c131f9482..681c333da4567434384145f8b483b665c81d8f0e 100644 (file)
@@ -291,8 +291,6 @@ namespace nasal
        */
       static Ghost& init(const std::string& name)
       {
-        assert( !getSingletonPtr() );
-
         getSingletonHolder().reset( new Ghost(name) );
         return *getSingletonPtr();
       }