diff options
author | chai <chaifix@163.com> | 2018-08-14 14:56:47 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-08-14 14:56:47 +0800 |
commit | 5c9af043503f92852a1a765b6ecfbc1aea24d2e9 (patch) | |
tree | eb371092c4137a672e7bfc13dc56ee777623ebfe /src/lua/luaopen_types.h | |
parent | 5162f84be0a4deb447c6ba1226722b049335d525 (diff) |
*update
Diffstat (limited to 'src/lua/luaopen_types.h')
-rw-r--r-- | src/lua/luaopen_types.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lua/luaopen_types.h b/src/lua/luaopen_types.h index 587c023..74c658f 100644 --- a/src/lua/luaopen_types.h +++ b/src/lua/luaopen_types.h @@ -59,6 +59,9 @@ namespace lua public: void bind(Object* obj, const char* t) { + if (obj == nullptr) + return; + obj->retain(); object = obj; type = t; } |