From e431b79f57c257eb066b43a0ebb98f2563b56cb3 Mon Sep 17 00:00:00 2001 From: Nik Henson Date: Tue, 1 Nov 2011 23:16:36 +0000 Subject: [PATCH] Fixed small bug which meant wasn't correctly clearing SCSP structures on initialisation. --- Src/Sound/SCSP.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Sound/SCSP.cpp b/Src/Sound/SCSP.cpp index c3f2979..8922f6e 100644 --- a/Src/Sound/SCSP.cpp +++ b/Src/Sound/SCSP.cpp @@ -557,7 +557,7 @@ bool SCSP_Init(int n) if(n==2) { SCSP=SCSPs+1; - memset(SCSP,0,sizeof(SCSP)); + memset(SCSP,0,sizeof(_SCSP)); SCSP->Master=0; HasSlaveSCSP=1; #ifdef USEDSP @@ -566,7 +566,7 @@ bool SCSP_Init(int n) } SCSP=SCSPs+0; - memset(SCSP,0,sizeof(SCSP)); + memset(SCSP,0,sizeof(_SCSP)); #ifdef USEDSP SCSPDSP_Init(&SCSP->DSP); #endif