NUMSFX > sfxfree for PlaySound

This commit is contained in:
toaster 2022-08-24 22:28:02 +01:00
parent 48a1f7f94d
commit 37f8b0e717

View file

@ -2501,7 +2501,7 @@ static void Command_PlaySound(void)
} }
else else
{ {
for (sfx = 0; sfx < NUMSFX; sfx++) for (sfx = 0; sfx < sfxfree; sfx++)
{ {
if (S_sfx[sfx].name && fasticmp(sound, S_sfx[sfx].name)) if (S_sfx[sfx].name && fasticmp(sound, S_sfx[sfx].name))
break; break;