diff --git a/agb-image-converter/src/palette16.rs b/agb-image-converter/src/palette16.rs index 0c7e3451..18adc83c 100644 --- a/agb-image-converter/src/palette16.rs +++ b/agb-image-converter/src/palette16.rs @@ -151,12 +151,12 @@ impl Palette16Optimiser { let mut a_colour_is_used = false; for current_palette in unsatisfied_palettes { - if palette.union_length(¤t_palette) > MAX_COLOURS_PER_PALETTE { + if palette.union_length(current_palette) > MAX_COLOURS_PER_PALETTE { continue; } for colour in ¤t_palette.colours { - if palette.colours.contains(&colour) { + if palette.colours.contains(colour) { continue; }