Debugger: Fixed crash/bug when PPU Viewer/Text Hooker were not set to cycle 0

This commit is contained in:
Sour 2018-07-16 18:35:41 -04:00
parent 28aeacef9f
commit b0a007de39

View file

@ -1086,7 +1086,10 @@ void Debugger::UpdatePpuCyclesToProcess()
{
memset(_proccessPpuCycle, 0, sizeof(_proccessPpuCycle));
for(auto updateCycle : _ppuViewerUpdateCycle) {
_proccessPpuCycle[updateCycle.second] = true;
int16_t cycle = updateCycle.second >> 9;
if(cycle < 341) {
_proccessPpuCycle[cycle] = true;
}
}
_proccessPpuCycle[0] = true;
}