Skip to content

Commit

Permalink
commit -> force_refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Apr 24, 2017
1 parent a6f67df commit dd81221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data/lua/wml-utils.lua
Expand Up @@ -155,7 +155,7 @@ function utils.handle_event_commands(cfg, scope_type)
current_exit = "none"
end
-- Apply music alterations once all the commands have been processed.
wesnoth.playlist.commit()
wesnoth.playlist.force_refresh()
return current_exit
end
Expand Down
2 changes: 1 addition & 1 deletion src/scripting/lua_audio.cpp
Expand Up @@ -223,7 +223,7 @@ namespace lua_audio {
{ "add", intf_music_add },
{ "clear", intf_music_clear },
{ "remove", intf_music_remove },
{ "commit", intf_music_commit },
{ "force_refresh", intf_music_commit },
{ nullptr, nullptr },
};
luaL_setfuncs(L, pl_callbacks, 0);
Expand Down

0 comments on commit dd81221

Please sign in to comment.