mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
Debugger: SNES - Fixed crash when resetting game while SPC debugger is opened
This commit is contained in:
parent
1063146082
commit
d6537ed0a5
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ void Spc::Run()
|
|||
}
|
||||
|
||||
//Minus 1 because each call to ProcessCycle increments _state.Cycle by 2
|
||||
uint64_t targetCycle = (uint64_t)(_memoryManager->GetMasterClock() * _clockRatio) - 1;
|
||||
while(_state.Cycle < targetCycle) {
|
||||
int64_t targetCycle = (int64_t)(_memoryManager->GetMasterClock() * _clockRatio) - 1;
|
||||
while((int64_t)_state.Cycle < targetCycle) {
|
||||
ProcessCycle();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue