Fixed a bug w/ Read16() -- was not casting to a pointer properly, caused Scud Race to crash.

This commit is contained in:
Bart Trzynadlowski 2011-12-26 07:15:32 +00:00
parent bdf11c765f
commit 532eafef55

View file

@ -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);