diff --git a/source/build/src/palette.cpp b/source/build/src/palette.cpp index d91079a59..0a38ad35b 100644 --- a/source/build/src/palette.cpp +++ b/source/build/src/palette.cpp @@ -265,13 +265,15 @@ void paletteLoadFromDisk(void) // Read the entries above and on the diagonal, if the table is // thought as being row-major. - if (read_and_test(fil, &transluc[256*i + i], 256-i-1)) + if (read_and_test(fil, &transluc[256*i + i + 1], 255-i)) return; // Duplicate the entries below the diagonal. - for (bssize_t j=0; j