diff --git a/Source/Project64/UserInterface/Debugger/Breakpoints.cpp b/Source/Project64/UserInterface/Debugger/Breakpoints.cpp index 165f74426..86c367b19 100644 --- a/Source/Project64/UserInterface/Debugger/Breakpoints.cpp +++ b/Source/Project64/UserInterface/Debugger/Breakpoints.cpp @@ -64,7 +64,12 @@ bool CBreakpoints::WBPAdd(uint32_t address) bool CBreakpoints::AddExecution(uint32_t address, bool bTemporary) { PreUpdateBP(); +#if _MSC_VER >= 1920 // Visual Studio 2019 deprecates _Pairib auto res = m_Execution.insert(breakpoint_t::value_type(address, bTemporary)); +#else + breakpoints_t::_Pairib res = m_Execution.insert(breakpoint_t::value_type(address, bTemporary)); +#endif // _MSC_VER + if (!res.second && !bTemporary) { res.first->second = true;