lua: fix meta table for the module

Signed-off-by: Raito Bezarius <masterancpp@gmail.com>
This commit is contained in:
Raito Bezarius 2024-09-07 20:01:28 +02:00
parent bbb4f9ff69
commit 14685a2680

View file

@ -948,6 +948,7 @@ static const luaL_Reg R_common[] = {
LUALIB_API int luaopen_iwinfo(lua_State *L) { LUALIB_API int luaopen_iwinfo(lua_State *L) {
luaL_newmetatable(L, IWINFO_META);
luaL_setfuncs(L, R_common, 0); luaL_setfuncs(L, R_common, 0);
#ifdef USE_WL #ifdef USE_WL