diff --git a/Source/Project64/UserInterface/Debugger/Debugger-CPULogView.cpp b/Source/Project64/UserInterface/Debugger/Debugger-CPULogView.cpp index 8a9d7e6db..91dff7693 100644 --- a/Source/Project64/UserInterface/Debugger/Debugger-CPULogView.cpp +++ b/Source/Project64/UserInterface/Debugger/Debugger-CPULogView.cpp @@ -218,10 +218,9 @@ void CDebugCPULogView::InterceptMouseWheel(WPARAM wParam, LPARAM lParam) if (MouseHovering(IDC_CPU_LIST) || MouseHovering(IDC_SCRL_BAR)) { - // scroll results list int scrollPos = m_Scrollbar.GetScrollPos(); - int m_ListStartIndex = scrollPos + nScroll; - m_Scrollbar.SetScrollPos(m_ListStartIndex); + m_LogStartIndex = scrollPos + nScroll; + m_Scrollbar.SetScrollPos(m_LogStartIndex); RefreshList(false); } }