From 37f8b0e7175c6c92e695a362d43a8a09bfc69d0f Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 24 Aug 2022 22:28:02 +0100 Subject: [PATCH] NUMSFX > sfxfree for PlaySound --- src/s_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_sound.c b/src/s_sound.c index 73607cdbc..a76d7c302 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -2501,7 +2501,7 @@ static void Command_PlaySound(void) } else { - for (sfx = 0; sfx < NUMSFX; sfx++) + for (sfx = 0; sfx < sfxfree; sfx++) { if (S_sfx[sfx].name && fasticmp(sound, S_sfx[sfx].name)) break;