bspinfo: fix .bmp palette writing
This commit is contained in:
parent
eceb031daa
commit
98d2e8daed
|
|
@ -209,7 +209,7 @@ static std::string serialize_image(const qvec3b *palette, const uint8_t *image,
|
|||
if (*pixel == 255) {
|
||||
s <= (int32_t) 0;
|
||||
} else {
|
||||
const qvec3b *color = &palette[*pixel];
|
||||
const qvec3b &color = palette[*pixel];
|
||||
s <= color[2];
|
||||
s <= color[1];
|
||||
s <= color[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue