From cf4788cc3a1a6a35a13f00f9d98e69a2466c7d15 Mon Sep 17 00:00:00 2001 From: Alexander van Gessel Date: Mon, 30 Oct 2017 23:34:10 +0100 Subject: [PATCH] Fix compatibility with boost 1.50 boost::optional.value was added later, so use the get method instead. --- src/scripting/lua_audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripting/lua_audio.cpp b/src/scripting/lua_audio.cpp index f8ede652b7d..54e9a6babaa 100644 --- a/src/scripting/lua_audio.cpp +++ b/src/scripting/lua_audio.cpp @@ -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); }