From eb5ff42d158ecc1b7675bf7692a32c21404f5adf Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 24 Jun 2019 13:21:06 -0700 Subject: Correctly index the send params --- Alc/mixvoice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc') diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp index e410e50e..7be65f65 100644 --- a/Alc/mixvoice.cpp +++ b/Alc/mixvoice.cpp @@ -567,7 +567,7 @@ void MixVoice(ALvoice *voice, ALvoice::State vstate, const ALuint SourceID, ALCc if(voice->mSend[send].Buffer.empty()) continue; - SendParams &parms = chandata.mWetParams[chan]; + SendParams &parms = chandata.mWetParams[send]; std::copy(std::begin(parms.Gains.Target), std::end(parms.Gains.Target), std::begin(parms.Gains.Current)); } -- cgit v1.2.3