fix Load_IFF() when bpp=0 !

This commit is contained in:
Thomas Bernard 2018-04-18 18:10:16 +02:00
parent c6014da99f
commit 758bc0833c

View File

@ -1043,7 +1043,7 @@ void Load_IFF(T_IO_Context * context)
ratio = PIXEL_WIDE; // 1.5 <= ratio
}
bpp = header.BitPlanes;
if (bpp <= 8)
if (bpp <= 8 && bpp > 0)
{
unsigned int i;
// Set a default grayscale palette : if the