sid.cpp: Fix issue #6798 (#6799)

* sid.cpp: Fix issue #6798

* sid.cpp: Constant here
This commit is contained in:
cam900 2020-06-07 00:27:36 +09:00 committed by GitHub
parent 5dfa023808
commit 08d6dfd88e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -209,7 +209,7 @@ void SID6581_t::init()
{
optr[v].sid = this;
int mod_voi = (v - 1) % max_voices;
u8 const mod_voi = ((v + max_voices) - 1) % max_voices;
optr[v].modulator = &optr[mod_voi];
optr[mod_voi].carrier = &optr[v];
optr[v].filtVoiceMask = 1 << v;