Skip to content

Commit

Permalink
Fix mouse click focus in debugger near functions ending in a branch. (#…
Browse files Browse the repository at this point in the history
…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 8542468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2/DebugTools/DisassemblyManager.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8542468

Please sign in to comment.