Fix off-by-one buffer overflow when getting LUT 255

This commit is contained in:
Gustaf Alhäll authored and Alug committed 2025-05-11 17:12:50 +02:00
1 parent 463778cd88
commit 001a38bbd2
1 file changed
+1 -1
+1 -1
View File
@@ -45,7 +45,7 @@ typedef struct
{
boolean init;
RGBA_t palette[256];
UINT16 table[0xFFFF];
UINT16 table[0x10000];
} colorlookup_t;
void InitColorLUT(colorlookup_t *lut, RGBA_t *palette, boolean makecolors);