diff options
Diffstat (limited to 'src/lua/modules/audio')
-rw-r--r-- | src/lua/modules/audio/je_lua_audio.cpp | 2 | ||||
-rw-r--r-- | src/lua/modules/audio/je_lua_source.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/lua/modules/audio/je_lua_audio.cpp b/src/lua/modules/audio/je_lua_audio.cpp index 57500eb..4366cd1 100644 --- a/src/lua/modules/audio/je_lua_audio.cpp +++ b/src/lua/modules/audio/je_lua_audio.cpp @@ -97,7 +97,7 @@ namespace JinEngine luax_pushnil(L); return 1; } - Proxy* proxy = luax_newinstance(L, Jin_Lua_Source, new Shared<Source>(L, src, Jin_Lua_Source)); + LuaObject* luaObj = luax_newinstance(L, Jin_Lua_Source, new Shared<Source>(L, src, Jin_Lua_Source)); return 1; } diff --git a/src/lua/modules/audio/je_lua_source.cpp b/src/lua/modules/audio/je_lua_source.cpp index 0e7b09e..f115721 100644 --- a/src/lua/modules/audio/je_lua_source.cpp +++ b/src/lua/modules/audio/je_lua_source.cpp @@ -15,8 +15,8 @@ namespace JinEngine LUA_IMPLEMENT inline SharedSource checkSource(lua_State* L) { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, Jin_Lua_Source); - return proxy->getShared<Source>(); + LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Source); + return luaObj->getShared<Source>(); } LUA_IMPLEMENT int l_play(lua_State* L) @@ -88,8 +88,8 @@ namespace JinEngine LUA_IMPLEMENT int l_gc(lua_State* L) { - Proxy* proxy = (Proxy*)luax_checktype(L, 1, Jin_Lua_Source); - proxy->release(); + LuaObject* luaObj = (LuaObject*)luax_checktype(L, 1, Jin_Lua_Source); + luaObj->release(); return 0; } |