mirror of https://github.com/PCSX2/pcsx2.git
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.
This commit is contained in:
parent
74282b46ff
commit
854246846d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue