aboutsummaryrefslogtreecommitdiff
path: root/src/chips/java/JavaOPL3.hpp
diff options
context:
space:
mode:
authorVitaly Novichkov <Wohlstand@users.noreply.github.com>2019-03-03 16:28:23 +0300
committerGitHub <noreply@github.com>2019-03-03 16:28:23 +0300
commitc19bf11f4b12004051fc76651733e17f3e98143a (patch)
treedb8c6030ffb2a5ae1ac18405ad5a570c8edc78bd /src/chips/java/JavaOPL3.hpp
parent9b63225a5ebbf82e27229443b8912512e407ef99 (diff)
parentebc2b4a2a6914c069f879574c4d9b53fbb72f27e (diff)
downloadlibADLMIDI-c19bf11f4b12004051fc76651733e17f3e98143a.tar.gz
libADLMIDI-c19bf11f4b12004051fc76651733e17f3e98143a.tar.bz2
libADLMIDI-c19bf11f4b12004051fc76651733e17f3e98143a.zip
Merge pull request #215 from jpcima/work
fix uninitialized chip variables
Diffstat (limited to 'src/chips/java/JavaOPL3.hpp')
-rw-r--r--src/chips/java/JavaOPL3.hpp2
1 files changed, 2 insertions, 0 deletions
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));