From 1b773ad2c250e09c09c065eb3eec64bfebde09ca Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 18 May 2018 14:39:38 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9userdata=E5=88=9B=E5=BB=BA=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/script/audio/luaopen_audio.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/script/audio/luaopen_audio.cpp') diff --git a/src/script/audio/luaopen_audio.cpp b/src/script/audio/luaopen_audio.cpp index f170115..78d7a69 100644 --- a/src/script/audio/luaopen_audio.cpp +++ b/src/script/audio/luaopen_audio.cpp @@ -22,7 +22,7 @@ namespace lua return 0; } - + static const luaL_Reg f[] = { {"init", l_init}, {"Sound", l_newSound}, @@ -31,7 +31,8 @@ namespace lua int luaopen_audio(lua_State* L) { - + luax_newlib(L, f); + return 1; } } -- cgit v1.1-26-g67d0