commit f0665c631ee73ea8411bc6092912bb709d927b38
Author: dbalsom <dbalsom@users.noreply.github.com>
AuthorDate: Sun Jun 30 08:42:03 2024 -0400
Commit: GitHub <noreply@github.com>
CommitDate: Sun Jun 30 08:42:03 2024 -0400
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 f15af6c2..2517de15 100644
--- a/opl/opl_sdl.c
+++ b/opl/opl_sdl.c
@@ -432,7 +432,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);
}
}