Fix compatibility with boost 1.50
boost::optional.value was added later, so use the get method instead.
This commit is contained in:
parent
bfde6993bf
commit
cf4788cc3a
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue