Skip to content

Commit

Permalink
Fix equivalence calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
IanSB committed Jul 7, 2021
1 parent 390ef45 commit 1ccc33b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/osd.c
Expand Up @@ -4097,9 +4097,10 @@ void osd_update_palette() {

//scan translated palette for equivalences
for (int i = 0; i < num_colours; i++) {
for(int j = i; j < num_colours; j++) {
for(int j = 0; j < num_colours; j++) {
if (palette_data[i] == palette_data[j]) {
equivalence[i] = (char) j;
break;
}
}
}
Expand Down

0 comments on commit 1ccc33b

Please sign in to comment.