From cde7529e394a6b671c91c025d37526a4484c8c37 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 18 Nov 2018 18:06:53 +0000 Subject: [PATCH] This bounds check is useless git-svn-id: https://svn.eduke32.com/eduke32@7161 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/gamedef.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/duke3d/src/gamedef.cpp b/source/duke3d/src/gamedef.cpp index b0d109671..99dd05c92 100644 --- a/source/duke3d/src/gamedef.cpp +++ b/source/duke3d/src/gamedef.cpp @@ -6141,8 +6141,8 @@ repeatcase: if (k > g_highestSoundIdx) g_highestSoundIdx = k; - if (k >= 0 && k < MAXSOUNDS-1 && g_dynamicSoundMapping && j >= 0 && (labeltype[j] & LABEL_DEFINE)) - G_ProcessDynamicSoundMapping(label+(j<<6),k); + if (g_dynamicSoundMapping && j >= 0 && (labeltype[j] & LABEL_DEFINE)) + G_ProcessDynamicSoundMapping(label+(j<<6), k); continue; case CON_ENDEVENT: