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/graphics/je_lua_graphics.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_graphics.cpp') diff --git a/src/lua/modules/graphics/je_lua_graphics.cpp b/src/lua/modules/graphics/je_lua_graphics.cpp index cc67055..82793be 100644 --- a/src/lua/modules/graphics/je_lua_graphics.cpp +++ b/src/lua/modules/graphics/je_lua_graphics.cpp @@ -3,7 +3,6 @@ #include "libjin/jin.h" #include "common/je_lua_proxy.h" - #include "common/je_lua_common.h" #include "je_lua_canvas.h" @@ -794,9 +793,9 @@ namespace JinEngine // newAnimation([frames table, loop, speed]) LUA_IMPLEMENT int l_newAnimation(lua_State* L) { - int args = luax_gettop(L); + int argc = luax_gettop(L); Shared* shrAnimation = new Shared(new Animation(), Jin_Lua_Animation); - if (args >= 3) + if (argc >= 3) { if (!luax_istable(L, 1)) { @@ -825,9 +824,9 @@ namespace JinEngine // newAnimator([animation]) LUA_IMPLEMENT int l_newAnimator(lua_State* L) { - int args = luax_gettop(L); + int argc = luax_gettop(L); Shared* shrAniamtor = new Shared(new Animator(), Jin_Lua_Animator); - if (args >= 1) + if (argc >= 1) { Proxy* pxyAnimation = (Proxy*)luax_checktype(L, 1, Jin_Lua_Animation); Shared& shrAnimtion = pxyAnimation->getShared(); -- cgit v1.1-26-g67d0