mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-26 20:00:53 +01:00
engine: imagelib: img_bmp: fully initialize local palette array
This commit is contained in:
parent
6282acc825
commit
aac0be1ab3
@ -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 };
|
||||
|
Loading…
Reference in New Issue
Block a user