From 744cdb208598df765202fda75950765f3076c828 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 17 Sep 2024 13:58:17 -0400 Subject: [PATCH] Lua API: Correct __metatable for wesnoth.preferences --- src/scripting/lua_preferences.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/lua_preferences.cpp b/src/scripting/lua_preferences.cpp index aebcf58360d..15210e128ab 100644 --- a/src/scripting/lua_preferences.cpp +++ b/src/scripting/lua_preferences.cpp @@ -81,7 +81,7 @@ namespace lua_preferences lua_setfield(L, -2, "__newindex"); lua_pushcfunction(L, impl_preferences_dir); lua_setfield(L, -2, "__dir"); - lua_pushstring(L, "src/scripting/lua_preferences.cpp"); + lua_pushstring(L, "preferences"); lua_setfield(L, -2, "__metatable"); // Set the table as its own metatable