|
|
@ -174,7 +174,7 @@ qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesi |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
estimatedSize = ( buf_p - buffer ) + ( image.width + padSize ) * image.height * ( bhdr.bitsPerPixel >> 3 ); |
|
|
|
estimatedSize = ( buf_p - buffer ) + image.width * image.height * ( bhdr.bitsPerPixel >> 3 ); |
|
|
|
if( filesize < estimatedSize ) |
|
|
|
if( filesize < estimatedSize ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if( image.palette ) |
|
|
|
if( image.palette ) |
|
|
|