diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 377b33e4c..d38631344 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -3587,12 +3587,10 @@ hue_range_retry:; upper_hue_2 = upper_hue_1 - 2 * M_PI; } - while (i > 0) + while (i--) { mc = work + i; - i--; - // if not in the first range, and not in the second range, skip this one // if ((mc->huehue>upper_hue_1) &&