diff options
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; } |