diff options
Diffstat (limited to 'src/lua/modules/graphics/je_lua_animation.cpp')
-rw-r--r-- | src/lua/modules/graphics/je_lua_animation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<Animation>(); - LuaObject* pxySprite = (LuaObject*)luax_checktype(L, 2, Jin_Lua_Sprite); - Shared<Sprite>& shrSprite = pxySprite->getShared<Sprite>(); + LuaObject* luaSprite = (LuaObject*)luax_checktype(L, 2, Jin_Lua_Sprite); + Shared<Sprite>& shrSprite = luaSprite->getShared<Sprite>(); 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<Sprite>& shrSprite = pxySprite->getShared<Sprite>(); + LuaObject* luaSprite = (LuaObject*)luax_checktype(L, -1, Jin_Lua_Sprite); + Shared<Sprite>& shrSprite = luaSprite->getShared<Sprite>(); shrAnimation->addFrame(shrSprite.getObject()); int index = shrAnimation->getFrameCount() - 1; luaObj->setDependency((int)AnimationDependency::DEP_SPRITES + index, &shrSprite); |