Fix crash executing the sascore test.

This commit is contained in:
Unknown W. Brackets 2013-02-23 18:35:22 -08:00
parent adf461802d
commit 2cb2601456

View File

@ -88,6 +88,11 @@ void VagDecoder::GetSamples(s16 *outSamples, int numSamples) {
return;
}
u8 *readp = Memory::GetPointer(read_);
if (!readp)
{
WARN_LOG(HLE, "Bad VAG samples address?");
return;
}
u8 *origp = readp;
for (int i = 0; i < numSamples; i++) {
if (curSample == 28) {