From 532eafef555f7625919c206606e8a51ee2c1626b Mon Sep 17 00:00:00 2001 From: Bart Trzynadlowski Date: Mon, 26 Dec 2011 07:15:32 +0000 Subject: [PATCH] Fixed a bug w/ Read16() -- was not casting to a pointer properly, caused Scud Race to crash. --- Src/Model3/SoundBoard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Model3/SoundBoard.cpp b/Src/Model3/SoundBoard.cpp index d0027e0..2234865 100644 --- a/Src/Model3/SoundBoard.cpp +++ b/Src/Model3/SoundBoard.cpp @@ -139,7 +139,7 @@ UINT16 CSoundBoard::Read16(UINT32 a) case 0xD: case 0xE: case 0xF: - return *(UINT16 *) sampleBank[a&0x7FFFFF]; + return *(UINT16 *) &sampleBank[a&0x7FFFFF]; default: //printf("68K: Unknown read16 %06X\n", a);