From ebc2b4a2a6914c069f879574c4d9b53fbb72f27e Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Sun, 3 Mar 2019 14:24:42 +0100 Subject: fix uninitialized chip variables --- src/chips/java/JavaOPL3.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/chips/java/JavaOPL3.hpp') diff --git a/src/chips/java/JavaOPL3.hpp b/src/chips/java/JavaOPL3.hpp index 17aff80..e9f0399 100644 --- a/src/chips/java/JavaOPL3.hpp +++ b/src/chips/java/JavaOPL3.hpp @@ -792,6 +792,8 @@ OPL3::~OPL3() void OPL3::initOperators() { + memset(registers, 0, sizeof(registers)); + int baseAddress; // The YMF262 has 36 operators: memset(operators, 0, sizeof(operators)); -- cgit v1.2.3