From 475cab3fc8ed4d371b0bca552a194adfcf01adf3 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 14 Feb 2021 20:58:21 -0500 Subject: [PATCH] Fix music track valid key not working --- 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 0ec8c50196cde..14382dba02a86 100644 --- a/src/scripting/lua_audio.cpp +++ b/src/scripting/lua_audio.cpp @@ -266,7 +266,7 @@ static int intf_music_commit(lua_State*) { static int impl_track_get(lua_State* L) { lua_music_track* track = get_track(L, 1); - if(track == nullptr || !track->valid()) { + if(track == nullptr) { return luaL_error(L, "Error: Attempted to access an invalid music track.\n"); } const char* m = luaL_checkstring(L, 2);