Lua API: Correct __metatable for wesnoth.preferences

This commit is contained in:
Celtic Minstrel 2024-09-17 13:58:17 -04:00
parent 802869bf23
commit 744cdb2085

View file

@ -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