diff options
author | Robin Gareus <robin@gareus.org> | 2016-08-27 15:53:38 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-08-27 15:53:38 +0200 |
commit | c64b8662a68225bfc12135770b4a31b2a3b91d72 (patch) | |
tree | 0726ffc301f78b7bb64d4039d143d283b5788e2d | |
parent | 62de4d0c31a7bb2e5f9688a8576dc65039b51e8e (diff) |
fix copy/paste typo in 1d7c14496
-rw-r--r-- | libs/lua/LuaBridge/detail/Namespace.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/lua/LuaBridge/detail/Namespace.h b/libs/lua/LuaBridge/detail/Namespace.h index d05effc410..bb05751455 100644 --- a/libs/lua/LuaBridge/detail/Namespace.h +++ b/libs/lua/LuaBridge/detail/Namespace.h @@ -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(); } }; |