Fix out-of-bounds memory access. (Sour via byuu)

This commit is contained in:
Brandon Wright 2019-08-01 13:07:44 -05:00
parent 27314dc6bc
commit b091b90547

View File

@ -751,7 +751,7 @@ MISC_CLOCK( 30 )
inline VOICE_CLOCK( V1 )
{
m.t_dir_addr = m.t_dir * 0x100 + m.t_srcn * 4;
m.t_dir_addr = (m.t_dir * 0x100 + m.t_srcn * 4) & 0xffff;
m.t_srcn = VREG(v->regs,srcn);
}
inline VOICE_CLOCK( V2 )