Debugger: Fixed crash/bug when PPU Viewer/Text Hooker were not set to cycle 0
This commit is contained in:
parent
28aeacef9f
commit
b0a007de39
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue