aboutsummaryrefslogtreecommitdiff
path: root/src/lua/audio/luaopen_Source.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-08-12 19:52:54 +0800
committerchai <chaifix@163.com>2018-08-12 19:52:54 +0800
commit7b34bd98bb00796febd5351b9d2e75fd2c247432 (patch)
treedd2da6fa01094f864d8deb358d7f9a8fe1b32b1c /src/lua/audio/luaopen_Source.cpp
parent5fe41eca99adf4bf0fb5832033a96f98b530d4f1 (diff)
*update
Diffstat (limited to 'src/lua/audio/luaopen_Source.cpp')
-rw-r--r--src/lua/audio/luaopen_Source.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/audio/luaopen_Source.cpp b/src/lua/audio/luaopen_Source.cpp
index cff3f7f..10aab4d 100644
--- a/src/lua/audio/luaopen_Source.cpp
+++ b/src/lua/audio/luaopen_Source.cpp
@@ -11,7 +11,7 @@ namespace lua
static inline SDLSource* checkSource(lua_State* L)
{
- Proxy* proxy = (Proxy*)luax_checktype(L, 1, TYPE_SOURCE);
+ Proxy* proxy = (Proxy*)luax_checktype(L, 1, JIN_AUDIO_SOURCE);
if (proxy != 0 && proxy != nullptr)
return (SDLSource*)proxy->object;
return nullptr;
@@ -108,7 +108,7 @@ namespace lua
int luaopen_Source(lua_State* L)
{
- luax_newtype(L, TYPE_SOURCE, f);
+ luax_newtype(L, JIN_AUDIO_SOURCE, f);
return 0;
}