From cfa05003be67344fbc79c338c2ac82f0accd979d Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 22 Nov 2018 16:15:48 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9argc?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/time/je_lua_time.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lua/modules/time/je_lua_time.cpp') diff --git a/src/lua/modules/time/je_lua_time.cpp b/src/lua/modules/time/je_lua_time.cpp index 6ad4935..4eb579f 100644 --- a/src/lua/modules/time/je_lua_time.cpp +++ b/src/lua/modules/time/je_lua_time.cpp @@ -3,7 +3,6 @@ #include "common/je_lua_proxy.h" #include "libjin/jin.h" - #include "je_lua_timer.h" using namespace JinEngine::Time; @@ -34,7 +33,8 @@ namespace JinEngine LUA_IMPLEMENT int l_newTimer(lua_State* L) { - Proxy* proxy = luax_newinstance(L, Jin_Lua_Timer, new Shared(new Timer(), Jin_Lua_Timer)); + Shared* shrTimer = new Shared(new Timer(), Jin_Lua_Timer); + luax_newinstance(L, Jin_Lua_Timer, shrTimer); return 1; } -- cgit v1.1-26-g67d0