stupid crash-fix for mystic warriors. something else is the real issue though.

This commit is contained in:
dinkc64 2014-10-18 13:40:17 +00:00
parent 96855d183b
commit 67b2866165
1 changed files with 6 additions and 0 deletions

View File

@ -481,6 +481,9 @@ else
cur_pos += (pdelta * nUpdateStep) >> 15;
cur_pval = cur_val;
if (cur_pos > info->rom_size) {
continue;
}
cur_val = (INT16)(samples[cur_pos] << 8);
if(cur_val == (INT16)0x8000) {
if(base2[1] & 1) {
@ -509,6 +512,9 @@ else
cur_pos += (pdelta * nUpdateStep) >> 15;
cur_pval = cur_val;
if (cur_pos+1 > info->rom_size) {
continue;
}
cur_val = (INT16)(samples[cur_pos] | samples[cur_pos+1]<<8);
if(cur_val == (INT16)0x8000) {
if(base2[1] & 1) {