Skip to content

Commit

Permalink
Fix music track valid key not working
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Feb 15, 2021
1 parent 7e699ca commit 3671d3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripting/lua_audio.cpp
Expand Up @@ -234,7 +234,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);
Expand Down

0 comments on commit 3671d3a

Please sign in to comment.