mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Debugger: Fix crash on ill-timed breakpoint update.
This commit is contained in:
parent
de1a6a93d8
commit
e7e5d031b2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user