]> git.mxchange.org Git - simgear.git/commitdiff
nasal::Ghost tweaking to allow using with osg::oberser_ptr.
authorThomas Geymayer <tomgey@gmail.com>
Mon, 1 Apr 2013 11:35:41 +0000 (13:35 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Mon, 1 Apr 2013 11:35:41 +0000 (13:35 +0200)
simgear/nasal/cppbind/Ghost.hxx

index 1ffadba7636bae3ed86300f9c1d7c1a6467d2f2f..81165784c2ea01a9acb875584c595c5593868aa2 100644 (file)
@@ -569,7 +569,7 @@ namespace nasal
                                     ++parent )
           {
             pointer ptr = fromNasal(c, *parent);
-            if( ptr )
+            if( ptr.get() )
               return ptr;
           }
         }
@@ -592,7 +592,7 @@ namespace nasal
        */
       static pointer* createInstance(const pointer& ptr)
       {
-        return ptr ? new pointer(ptr) : 0;
+        return ptr.get() ? new pointer(ptr) : 0;
       }
 
       static pointer getPtr(void* ptr)