Correctly index the send params

This commit is contained in:
Chris Robinson
2019-06-24 13:21:06 -07:00
parent e8cef0cdae
commit eb5ff42d15
+1 -1
View File
@@ -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));
}