X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fdebug%2Fopbrowser.cpp;h=5e1d405477b60c05a31df5d3750e81162e8435d2;hb=240a6df48aebb5e17f82452c32e770cdfe9b5d5e;hp=6b3ff3ed0af73398f0d953dff3418f4c14dd581d;hpb=40e59fafacbc0df467b9d3c05a6199ff6138949b;p=virtualjaguar diff --git a/src/gui/debug/opbrowser.cpp b/src/gui/debug/opbrowser.cpp index 6b3ff3e..5e1d405 100644 --- a/src/gui/debug/opbrowser.cpp +++ b/src/gui/debug/opbrowser.cpp @@ -107,9 +107,9 @@ void OPBrowserWindow::DiscoverObjects(uint32_t address) if (objectType == 3) { - // Branch if YPOS < 2047 can be treated as a GOTO, so don't do any - // discovery in that case. Otherwise, have at it: - if ((lo & 0xFFFF) != 0x7FFB) + // Branch if YPOS < 2047 (or YPOS > 0) can be treated as a GOTO, so + // don't do any discovery in that case. Otherwise, have at it: + if (((lo & 0xFFFF) != 0x7FFB) && ((lo & 0xFFFF) != 0x8003)) // Recursion needed to follow all links! This does depth-first // recursion on the not-taken objects DiscoverObjects(address + 8);