diff options
author | chai <chaifix@163.com> | 2018-11-22 16:15:48 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-22 16:15:48 +0800 |
commit | cfa05003be67344fbc79c338c2ac82f0accd979d (patch) | |
tree | 3ed1fa8cdeaf6210b1fd6271f28af24ab41ee55a /src/lua/modules/graphics/je_lua_graphics.cpp | |
parent | a0a1e1609fd65c2fe103cfe5a4532b7ccd492c7f (diff) |
*修改argc
Diffstat (limited to 'src/lua/modules/graphics/je_lua_graphics.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_graphics.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
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<Animation>* shrAnimation = new Shared<Animation>(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<Animator>* shrAniamtor = new Shared<Animator>(new Animator(), Jin_Lua_Animator); - if (args >= 1) + if (argc >= 1) { Proxy* pxyAnimation = (Proxy*)luax_checktype(L, 1, Jin_Lua_Animation); Shared<Animation>& shrAnimtion = pxyAnimation->getShared<Animation>(); |