Update Sid.cs

This commit is contained in:
alyosha-tas 2017-05-31 18:30:23 -04:00 committed by GitHub
parent d796af3a9d
commit 113d002701
1 changed files with 3 additions and 1 deletions

View File

@ -218,7 +218,9 @@ namespace BizHawk.Emulation.Cores.Computers.Commodore64.MOS
}
filter_index = _outputBufferIndex;
last_filtered_value = _outputBuffer_filtered[_outputBufferIndex - 1];
if (_outputBufferIndex>0) {
last_filtered_value = _outputBuffer_filtered[_outputBufferIndex - 1];
}
}
// if the filter is off, keep updating the filter index to the most recent Flush