bspinfo: fix .bmp palette writing

This commit is contained in:
Eric Wasylishen 2021-12-13 20:08:19 -07:00
parent eceb031daa
commit 98d2e8daed
1 changed files with 1 additions and 1 deletions

View File

@ -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];