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:
Russ K 2018-01-06 04:05:42 -06:00 committed by Robert Neumann
parent 74282b46ff
commit 854246846d
1 changed files with 1 additions and 1 deletions

View File

@ -575,7 +575,7 @@ void DisassemblyFunction::load()
// skip branches and their delay slots // skip branches and their delay slots
if (opInfo.isBranch) if (opInfo.isBranch)
{ {
funcPos += 4; if (funcPos < funcEnd) funcPos += 4; // only include delay slots within the function bounds
continue; continue;
} }