From 3994e3ae1e1675e9eb774817c960c52e217a89e1 Mon Sep 17 00:00:00 2001 From: BotoX Date: Fri, 10 Aug 2018 14:52:30 +0200 Subject: [PATCH] AntiBhopCheat: fix runtime error --- AntiBhopCheat/scripting/AntiBhopCheat.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AntiBhopCheat/scripting/AntiBhopCheat.sp b/AntiBhopCheat/scripting/AntiBhopCheat.sp index acc2c546..f1bc5991 100644 --- a/AntiBhopCheat/scripting/AntiBhopCheat.sp +++ b/AntiBhopCheat/scripting/AntiBhopCheat.sp @@ -264,7 +264,7 @@ void DoStats(CPlayer Player, CStreak CurStreak, CJump hJump) int iPrevJump = hJump.iPrevJump; int iNextJump = hJump.iNextJump; - if(iPrevJump != -1) + if(iPrevJump > 0) { int iPerf = iPrevJump - 1; if(iPerf > 2)