mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: imagelib: img_bmp: fully initialize local palette array
This commit is contained in:
@@ -25,7 +25,7 @@ Image_LoadBMP
|
||||
qboolean Image_LoadBMP( const char *name, const byte *buffer, fs_offset_t filesize )
|
||||
{
|
||||
byte *buf_p, *pixbuf;
|
||||
rgba_t palette[256];
|
||||
rgba_t palette[256] = { 0 };
|
||||
int i, columns, column, rows, row, bpp = 1;
|
||||
int cbPalBytes = 0, padSize = 0, bps = 0;
|
||||
int reflectivity[3] = { 0, 0, 0 };
|
||||
|
||||
Reference in New Issue
Block a user