From 85d456d30810347257a33d9443d4ad158d6d5fb1 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 4 Dec 2018 14:15:29 +0800 Subject: =?UTF-8?q?*=E6=A0=BC=E5=BC=8F=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lua/modules/graphics/je_lua_animation.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lua/modules/graphics/je_lua_animation.cpp') diff --git a/src/lua/modules/graphics/je_lua_animation.cpp b/src/lua/modules/graphics/je_lua_animation.cpp index 4cb513c..bdba10d 100644 --- a/src/lua/modules/graphics/je_lua_animation.cpp +++ b/src/lua/modules/graphics/je_lua_animation.cpp @@ -40,8 +40,8 @@ namespace JinEngine { LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Animation); SharedAnimation shrAnimation = luaObj->getShared(); - LuaObject* pxySprite = (LuaObject*)luax_checktype(L, 2, Jin_Lua_Sprite); - Shared& shrSprite = pxySprite->getShared(); + LuaObject* luaSprite = (LuaObject*)luax_checktype(L, 2, Jin_Lua_Sprite); + Shared& shrSprite = luaSprite->getShared(); shrAnimation->addFrame(shrSprite.getObject()); int i = shrAnimation->getFrameCount() - 1; luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + i, &shrSprite); @@ -62,8 +62,8 @@ namespace JinEngine for (int i = 1; i <= n; ++i) { luax_rawgeti(L, 2, i); - LuaObject* pxySprite = (LuaObject*)luax_checktype(L, -1, Jin_Lua_Sprite); - Shared& shrSprite = pxySprite->getShared(); + LuaObject* luaSprite = (LuaObject*)luax_checktype(L, -1, Jin_Lua_Sprite); + Shared& shrSprite = luaSprite->getShared(); shrAnimation->addFrame(shrSprite.getObject()); int index = shrAnimation->getFrameCount() - 1; luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + index, &shrSprite); -- cgit v1.1-26-g67d0