From 46b4bbe9eafdf720809ef385de2efb4433905406 Mon Sep 17 00:00:00 2001 From: Wohlstand Date: Wed, 7 Dec 2016 18:31:24 +0300 Subject: Fixed another crash and dealing with uninitialized memory --- src/dbopl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dbopl.cpp') diff --git a/src/dbopl.cpp b/src/dbopl.cpp index 40b2220..1f2f397 100644 --- a/src/dbopl.cpp +++ b/src/dbopl.cpp @@ -1345,7 +1345,7 @@ namespace DBOPL void Chip::WriteReg(Bit32u reg, Bit8u val) { - Bitu index; + Bitu index = 0; switch((reg & 0xf0) >> 4) { -- cgit v1.2.3