Permalink
Browse files

Fix mouse click focus in debugger near functions ending in a branch. (#…

…2250)

This code updates the DisassemblyFunction objects to only include Delay Slots when they are within the bounds of the function.
  • Loading branch information...
rkubes authored and ramapcsx2 committed Jan 6, 2018
1 parent 74282b4 commit 854246846dc9c580648b11a2c7b6a216bd0ee729
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 8542468

Please sign in to comment.