diff --git a/Windows/Debugger/Debugger_Lists.cpp b/Windows/Debugger/Debugger_Lists.cpp index c183642a86..328bbf6390 100644 --- a/Windows/Debugger/Debugger_Lists.cpp +++ b/Windows/Debugger/Debugger_Lists.cpp @@ -320,6 +320,8 @@ void CtrlBreakpointList::reloadBreakpoints() { bool isMemory; int index = getBreakpointIndex(i, isMemory); + if (index < 0) + continue; if (isMemory) SetCheckState(i,(displayedMemChecks_[index].result & MEMCHECK_BREAK) != 0);