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_spritesheet.cpp | |
parent | a0a1e1609fd65c2fe103cfe5a4532b7ccd492c7f (diff) |
*修改argc
Diffstat (limited to 'src/lua/modules/graphics/je_lua_spritesheet.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_spritesheet.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/modules/graphics/je_lua_spritesheet.cpp b/src/lua/modules/graphics/je_lua_spritesheet.cpp index 57b610c..362a78d 100644 --- a/src/lua/modules/graphics/je_lua_spritesheet.cpp +++ b/src/lua/modules/graphics/je_lua_spritesheet.cpp @@ -66,12 +66,12 @@ namespace JinEngine int w = luax_checkinteger(L, 5); int h = luax_checkinteger(L, 6); vector<Sprite*> sprs; - int args = luax_gettop(L); - if (args == 6) + int argc = luax_gettop(L); + if (argc == 6) { sprs = ss->createSprites(count, r, c, w, h, Origin::TopLeft); } - else if (args >= 8) + else if (argc >= 8) { int ox = luax_checkinteger(L, 7); int oy = luax_checkinteger(L, 8); @@ -79,7 +79,7 @@ namespace JinEngine int offy = luax_optinteger(L, 10, 0); sprs = ss->createSprites(count, r, c, w, h, ox, oy, offx, offy); } - else if (args >= 7) + else if (argc >= 7) { int o = luax_checkinteger(L, 7); Origin origin = static_cast<Origin>(o); |