diff --git a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp index 23fffefa64..958e731c0d 100644 --- a/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp +++ b/Source/Core/DolphinQt/Debugger/AssemblerWidget.cpp @@ -846,7 +846,7 @@ void AssemblerWidget::CloseTab(int index, AsmEditor* editor) int AssemblerWidget::AllocateTabNum() { - auto min_it = std::min_element(m_free_editor_nums.begin(), m_free_editor_nums.end()); + auto min_it = std::ranges::min_element(m_free_editor_nums); if (min_it == m_free_editor_nums.end()) { return m_unnamed_editor_count++;