From: Thomas Geymayer Date: Mon, 1 Apr 2013 11:35:41 +0000 (+0200) Subject: nasal::Ghost tweaking to allow using with osg::oberser_ptr. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=198c5d23fda094594148c63ac2920abff2d9c1b0;p=simgear.git nasal::Ghost tweaking to allow using with osg::oberser_ptr. --- diff --git a/simgear/nasal/cppbind/Ghost.hxx b/simgear/nasal/cppbind/Ghost.hxx index 1ffadba7..81165784 100644 --- a/simgear/nasal/cppbind/Ghost.hxx +++ b/simgear/nasal/cppbind/Ghost.hxx @@ -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)