Skip to content

Commit 7cb103b

Browse files
committed
fix(zscript): fixed paldata mix() not flagging changed colors as used
1 parent 8a122dd commit 7cb103b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/zc/ffscript.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32052,6 +32052,7 @@ void user_paldata::mix(user_paldata *pal_start, user_paldata *pal_end, double pe
3205232052
RGB start = pal_start->colors[q];
3205332053
RGB end = pal_end->colors[q];
3205432054
colors[q] = mix_color(start, end, percent, color_space);
32055+
set_bit(colors_used, q, true);
3205532056
}
3205632057
}
3205732058
}

0 commit comments

Comments
 (0)