From cf1ea3484ef8856c34b4c840c5ee2be0e9cf0a73 Mon Sep 17 00:00:00 2001 From: zilmar Date: Tue, 23 Oct 2012 04:03:49 +1100 Subject: [PATCH] clean up jump check --- Source/Project64/N64 System/Recompiler/Loop Analysis.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp b/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp index a4b559299..74a9bf87b 100644 --- a/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp +++ b/Source/Project64/N64 System/Recompiler/Loop Analysis.cpp @@ -233,7 +233,9 @@ bool LoopAnalysis::CheckLoopRegisterUsage( CCodeSection * Section) { _Notify->BreakPoint(__FILE__,__LINE__); } - if (Section->m_Jump.TargetPC != m_PC + ((short)m_Command.offset << 2) + 4) + if (Section->m_Jump.TargetPC != m_PC + ((short)m_Command.offset << 2) + 4 && + Section->m_JumpSection != NULL && + Section->m_Jump.TargetPC != (DWORD)-1) { _Notify->BreakPoint(__FILE__,__LINE__); }