Skip to content

Commit d007aac

Browse files
committed
Fix pre-increment off by one
1 parent 9b87302 commit d007aac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codemp/cgame/hud_strafehelper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1927,7 +1927,7 @@ japro - Draw the speedometer
19271927
jumpsCounter = 0;
19281928
clearOnNextJump = qfalse;
19291929
}
1930-
cg.lastGroundSpeeds[++jumpsCounter] = cg.lastGroundSpeed; //add last ground speed to the array
1930+
cg.lastGroundSpeeds[jumpsCounter++] = cg.lastGroundSpeed; //add last ground speed to the array
19311931
}
19321932
}
19331933

0 commit comments

Comments
 (0)