From c0d3ae55bf3b5ff62621633b55b8532da6c34c71 Mon Sep 17 00:00:00 2001 From: dbalsom Date: Sun, 30 Jun 2024 08:42:03 -0400 Subject: [PATCH] fix reference to timer2.enabled --- opl/opl_sdl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }