From 5b6b902c293d5d5135910308164f3d47f393e49a Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 19 Apr 2020 10:17:11 +0000 Subject: [PATCH] Fix music not looping. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5675 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/m_mp3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/m_mp3.c b/engine/client/m_mp3.c index b339999dc..e03df1591 100644 --- a/engine/client/m_mp3.c +++ b/engine/client/m_mp3.c @@ -377,8 +377,8 @@ qboolean Media_CleanupTrackName(const char *track, int *out_track, char *result, #ifndef HAVE_LEGACY if (!tracknum) //might as well require exact file { - Q_snprintfz(trackname, sizeof(trackname), "%s", track); - d = COM_FCheckExists(trackname); + Q_snprintfz(result, resultsize, "%s", track); + d = COM_FCheckExists(result); } else #endif