diff --git a/src/duckstation-qt/debuggerwindow.cpp b/src/duckstation-qt/debuggerwindow.cpp index 557bc0689..a8d5c3c44 100644 --- a/src/duckstation-qt/debuggerwindow.cpp +++ b/src/duckstation-qt/debuggerwindow.cpp @@ -569,7 +569,7 @@ void DebuggerWindow::setMemoryViewRegion(Bus::MemoryRegion region) static constexpr auto edit_ram_callback = [](size_t offset, size_t count) { // shouldn't happen - if (offset > Bus::g_ram_size) + if (offset >= Bus::g_ram_size) return; const u32 start_page = static_cast(offset) >> HOST_PAGE_SHIFT;