Fix off-by-one buffer overflow when getting LUT 255
This commit is contained in:
1 parent
f626e9e06b
commit
1a91adc5c1
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user