From 1126d5e3d4e3e210facbdbe4386a6ec0df5230e5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 4 Feb 2020 20:32:51 +0100 Subject: [PATCH] - fixed return value of Mus_play This wasn't always returning false if playback failed. --- source/common/music/music.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/common/music/music.cpp b/source/common/music/music.cpp index 897a47304..3fa6394c8 100644 --- a/source/common/music/music.cpp +++ b/source/common/music/music.cpp @@ -679,8 +679,7 @@ int Mus_Play(const char *mapname, const char *fn, bool loop) return true; } - S_ChangeMusic(fn, 0, loop, true); - return mus_playing.handle != nullptr; + return S_ChangeMusic(fn, 0, loop, true); } bool Mus_IsPlaying()