From 8d888176308fbee0e558365bf10be2f27d963e3b Mon Sep 17 00:00:00 2001 From: Dethrace Labs <78985374+dethrace-labs@users.noreply.github.com> Date: Fri, 3 Oct 2025 14:05:54 +1300 Subject: [PATCH] GetOpponentsRealSection matching --- src/DETHRACE/common/opponent.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/DETHRACE/common/opponent.c b/src/DETHRACE/common/opponent.c index 718bcf6b..43356690 100644 --- a/src/DETHRACE/common/opponent.c +++ b/src/DETHRACE/common/opponent.c @@ -2897,11 +2897,10 @@ int GetOpponentsRealSection(tOpponent_spec* pOpponent_spec, int pSection_no) { if (pSection_no >= 20000) { return pOpponent_spec->next_sections[pSection_no - 20000].section_no; - } else if (pSection_no >= 10000) { - return -1; - } else { + } else if (pSection_no < 10000) { return pSection_no; } + return -1; } // IDA: int __usercall GetOpponentsFirstSection@(tOpponent_spec *pOpponent_spec@)