Lua API: Correct __metatable for wesnoth.preferences
This commit is contained in:
parent
802869bf23
commit
744cdb2085
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ namespace lua_preferences
|
||||||
lua_setfield(L, -2, "__newindex");
|
lua_setfield(L, -2, "__newindex");
|
||||||
lua_pushcfunction(L, impl_preferences_dir);
|
lua_pushcfunction(L, impl_preferences_dir);
|
||||||
lua_setfield(L, -2, "__dir");
|
lua_setfield(L, -2, "__dir");
|
||||||
lua_pushstring(L, "src/scripting/lua_preferences.cpp");
|
lua_pushstring(L, "preferences");
|
||||||
lua_setfield(L, -2, "__metatable");
|
lua_setfield(L, -2, "__metatable");
|
||||||
|
|
||||||
// Set the table as its own metatable
|
// Set the table as its own metatable
|
||||||
|
|
Loading…
Add table
Reference in a new issue