Debugger: Fix crash on ill-timed breakpoint update.

This commit is contained in:
Unknown W. Brackets 2021-12-12 10:49:38 -08:00
parent de1a6a93d8
commit e7e5d031b2

View File

@ -401,11 +401,11 @@ void CtrlBreakpointList::removeBreakpoint(int itemIndex)
}
}
int CtrlBreakpointList::getTotalBreakpointCount()
{
int count = (int)CBreakPoints::GetMemChecks().size();
for (size_t i = 0; i < CBreakPoints::GetBreakpoints().size(); i++) {
if (!displayedBreakPoints_[i].temporary) count++;
int CtrlBreakpointList::getTotalBreakpointCount() {
int count = (int)displayedMemChecks_.size();
for (auto bp : displayedBreakPoints_) {
if (!bp.temporary)
++count;
}
return count;