fix copy/paste typo in 1d7c14496
authorRobin Gareus <robin@gareus.org>
Sat, 27 Aug 2016 13:53:38 +0000 (15:53 +0200)
committerRobin Gareus <robin@gareus.org>
Sat, 27 Aug 2016 13:53:38 +0000 (15:53 +0200)
libs/lua/LuaBridge/detail/Namespace.h

index d05effc41074fc27e1ded013d11b3693b9c5abae..bb05751455cd2f87a1e8d058b1d86de1fd348e74 100644 (file)
@@ -1304,12 +1304,12 @@ private:
       set_weak_class ();
       assert (lua_istable (L, -1));
       lua_pushcclosure (L, &CFunc::WPtrEqualCheck <T>::f, 0);
-      rawsetfield (L, -3, "isnil"); // class table
+      rawsetfield (L, -3, "sameinstance"); // class table
 
       set_shared_class ();
       assert (lua_istable (L, -1));
       lua_pushcclosure (L, &CFunc::PtrEqualCheck <T>::f, 0);
-      rawsetfield (L, -3, "isnil"); // class table
+      rawsetfield (L, -3, "sameinstance"); // class table
 
       return *this;
     }
@@ -1886,7 +1886,8 @@ public:
     return WSPtrClass <T> (name, this,
         ClassInfo <boost::shared_ptr<U> >::getStaticKey (),
         ClassInfo <boost::weak_ptr<U> >::getStaticKey ())
-      .addNullCheck();
+      .addNullCheck()
+      .addEqualCheck();
   }
 
 };