From 0d635d2817f91ac5d04289c2dd9a9fcd8680fd31 Mon Sep 17 00:00:00 2001 From: Andrea Date: Mon, 29 May 2023 15:18:06 +0100 Subject: [PATCH] Fix read of uninitialised values in sound_ay_overlay(). (PR #1226) --- source/AY8910.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/AY8910.cpp b/source/AY8910.cpp index 602f165c..29f5a677 100644 --- a/source/AY8910.cpp +++ b/source/AY8910.cpp @@ -121,6 +121,7 @@ void AY8913::init(void) AY8913::AY8913(void) { + memset(sound_ay_registers, 0, sizeof(sound_ay_registers)); init(); m_fCurrentCLK_AY8910 = g_fCurrentCLK6502; };