From 30cc6a35e8dec85c970b4733acfdb8aa47ebe6f9 Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 15 Dec 2018 01:39:36 +0000 Subject: [PATCH] I don't see a reason for these operations to be separated git-svn-id: https://svn.eduke32.com/eduke32@7281 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/sounds.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/duke3d/src/sounds.cpp b/source/duke3d/src/sounds.cpp index b3c46e3d0..4b88ea42c 100644 --- a/source/duke3d/src/sounds.cpp +++ b/source/duke3d/src/sounds.cpp @@ -919,8 +919,7 @@ void S_Callback(uint32_t num) if ((int32_t)num == MUSIC_ID) return; - dq[dnum & (DQSIZE - 1)] = num; - dnum++; + dq[dnum++ & (DQSIZE - 1)] = num; } void S_ClearSoundLocks(void)