Fix compatibility with boost 1.50

boost::optional.value was added later, so use the get method instead.
This commit is contained in:
Alexander van Gessel 2017-10-30 23:34:10 +01:00
parent bfde6993bf
commit cf4788cc3a

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);
}