summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib_img.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/lua/rocklib_img.c')
-rw-r--r--apps/plugins/lua/rocklib_img.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/lua/rocklib_img.c b/apps/plugins/lua/rocklib_img.c
index 909f1b61b9..45012ece20 100644
--- a/apps/plugins/lua/rocklib_img.c
+++ b/apps/plugins/lua/rocklib_img.c
@@ -1424,9 +1424,10 @@ LUALIB_API int luaopen_rock_img(lua_State *L)
1424 1424
1425 lua_pushvalue(L, -1); /* pushes the metatable */ 1425 lua_pushvalue(L, -1); /* pushes the metatable */
1426 lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */ 1426 lua_setfield(L, -2, "__index"); /* metatable.__index = metatable */
1427 luaL_register(L, NULL, rli_lib); /*add rli_lib to the image metatable*/
1427 1428
1428 luaL_register(L, LUA_ROCKLIBNAME, rocklib_img); 1429 luaL_register(L, LUA_ROCKLIBNAME, rocklib_img);
1429 luaL_register(L, NULL, rli_lib);
1430 1430
1431 return 1; 1431 return 1;
1432} 1432}
1433