Fix assert when reading paletted TGA images. Fixes issue 125.

pull/216/head
castano 14 years ago
parent da503d2b3e
commit caff2c9006

@ -669,7 +669,7 @@ Image * nv::ImageIO::loadTGA(Stream & s)
// Read palette
uint8 palette[768];
if( pal ) {
nvDebugCheck(tga.colormap_length < 256);
nvDebugCheck(tga.colormap_length <= 256);
s.serialize(palette, 3 * tga.colormap_length);
}

Loading…
Cancel
Save