diff --git a/pcsx2/DebugTools/DisassemblyManager.cpp b/pcsx2/DebugTools/DisassemblyManager.cpp index 9520c19499..d20f55a0f7 100644 --- a/pcsx2/DebugTools/DisassemblyManager.cpp +++ b/pcsx2/DebugTools/DisassemblyManager.cpp @@ -575,7 +575,7 @@ void DisassemblyFunction::load() // skip branches and their delay slots if (opInfo.isBranch) { - funcPos += 4; + if (funcPos < funcEnd) funcPos += 4; // only include delay slots within the function bounds continue; }