Merge branch 'master' of github.com:wesnoth/wesnoth

This commit is contained in:
Charles Dang 2017-10-31 09:36:25 +11:00
commit 330bbcee78

View file

@ -98,7 +98,7 @@ static int impl_music_get(lua_State* L) {
if(strcmp(m, "current_i") == 0) {
auto current_index = sound::get_current_track_index();
if(current_index) {
lua_pushinteger(L, current_index.value() + 1);
lua_pushinteger(L, current_index.get() + 1);
} else {
lua_pushnil(L);
}