Skip to content

Commit

Permalink
Fix compatibility with boost 1.50
Browse files Browse the repository at this point in the history
boost::optional.value was added later, so use the get method instead.
  • Loading branch information
AI0867 authored and GregoryLundberg committed Nov 30, 2017
1 parent c554391 commit 2b00d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/lua_audio.cpp
Expand Up @@ -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);
}
Expand Down

0 comments on commit 2b00d0c

Please sign in to comment.