From 436568ee6320ee7507c01cd6978c078aec2335bd Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 23 Nov 2018 13:20:48 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/common/je_lua_shared.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lua/common/je_lua_shared.cpp') diff --git a/src/lua/common/je_lua_shared.cpp b/src/lua/common/je_lua_shared.cpp index a3478dd..241aec2 100644 --- a/src/lua/common/je_lua_shared.cpp +++ b/src/lua/common/je_lua_shared.cpp @@ -15,6 +15,7 @@ namespace JinEngine { if (--mCount <= 0) { + // Remove game object reference. luax_removeobject(mL, this); delete this; } -- cgit v1.1-26-g67d0