Skip to content

Commit d15d54c

Browse files
committed
Fix CodeQL issue
1 parent 7acecd3 commit d15d54c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/core/speed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ void speed_set_target(speed_type *speed, double new_speed, time_millis total_tim
3636
speed->desired_speed = new_speed;
3737
speed->current_speed = new_speed;
3838
speed->total_time = total_time;
39-
if (!adjust_for_time && time_get_millis() - speed->last_speed_check > 0) {
39+
if (!adjust_for_time && time_get_millis() != speed->last_speed_check) {
4040
speed->adjusted_current_speed = adjust_speed_for_frame_time(new_speed, 1, speed->last_speed_check);
4141
} else {
4242
speed->adjusted_current_speed = new_speed;

0 commit comments

Comments
 (0)