From b3d8fd1a9dd2ad89c94b79e6b2d61bdfab7dd527 Mon Sep 17 00:00:00 2001 From: neon <> Date: Fri, 10 Aug 2018 15:45:40 +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 d026b46e..e96ad32c 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)