Skip to content

Commit

Permalink
Fix broken theme items API
Browse files Browse the repository at this point in the history
Fixes #5225
Fixes #4921
  • Loading branch information
CelticMinstrel committed Oct 24, 2020
1 parent 9e91ddb commit a9cb075
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/game_lua_kernel.cpp
Expand Up @@ -3866,7 +3866,7 @@ namespace {
{
lua_State *L = mState;
config cfg;
if (!luaW_getglobal(L, "wesnoth", "theme_items", name))
if (!luaW_getglobal(L, "wesnoth", "interface", "game_display", name))
return cfg;
if (!luaW_pcall(L, 0, 1)) return cfg;
luaW_toconfig(L, -1, cfg);
Expand Down

0 comments on commit a9cb075

Please sign in to comment.