mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-01-02 01:37:04 +00:00
Fix some out of bound array access. (#862)
This commit is contained in:
parent
f6a1cc598e
commit
f0ef8f3cc2
2 changed files with 3 additions and 19 deletions
|
|
@ -247,7 +247,7 @@ namespace snd
|
|||
channel->drc_control[index].fader = 0;
|
||||
channel->drc_control[index].lfe = -960;
|
||||
|
||||
for (size_t i = 0; i < AX_MAX_NUM_BUS; ++i)
|
||||
for (size_t i = 0; i < AX_AUX_BUS_COUNT; ++i)
|
||||
{
|
||||
channel->drc_control[index].aux[i] = -960;
|
||||
}
|
||||
|
|
@ -272,7 +272,7 @@ namespace snd
|
|||
channel->rmt_control[index].fader = 0;
|
||||
channel->rmt_control[index].lfe = -960;
|
||||
|
||||
for (size_t i = 0; i < AX_MAX_NUM_BUS; ++i)
|
||||
for (size_t i = 0; i < AX_AUX_BUS_COUNT; ++i)
|
||||
{
|
||||
channel->rmt_control[index].aux[i] = -960;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue