diff --git a/opl/opl_sdl.c b/opl/opl_sdl.c index 6a0fd11a..09803a17 100644 --- a/opl/opl_sdl.c +++ b/opl/opl_sdl.c @@ -254,7 +254,7 @@ static void WriteRegister(unsigned int reg_num, unsigned int value) if ((value & 0x20) == 0) { - timer1.enabled = (value & 0x02) != 0; + timer2.enabled = (value & 0x02) != 0; OPLTimer_CalculateEndTime(&timer2); } }