summaryrefslogtreecommitdiff
path: root/plugins/MirLua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/MirLua')
-rw-r--r--plugins/MirLua/src/mlua_metatable.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/MirLua/src/mlua_metatable.h b/plugins/MirLua/src/mlua_metatable.h
index 5048c39288..0946eb9caa 100644
--- a/plugins/MirLua/src/mlua_metatable.h
+++ b/plugins/MirLua/src/mlua_metatable.h
@@ -64,12 +64,13 @@ private:
*obj = (T*)lua_touserdata(L, 1);
}
- static int Index(lua_State *L, T */*obj*/)
+ static int Index(lua_State *L, T* /*obj*/)
{
lua_pushnil(L);
+ return 1;
}
- static void Free(lua_State */*L*/, T **obj)
+ static void Free(lua_State * /*L*/, T **obj)
{
*obj = NULL;
}