From 98d2e8daed312ee70c9f944a46cee58d627a9f76 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Mon, 13 Dec 2021 20:08:19 -0700 Subject: [PATCH] bspinfo: fix .bmp palette writing --- bspinfo/bspinfo.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bspinfo/bspinfo.cc b/bspinfo/bspinfo.cc index 132d9803..e88c65d8 100644 --- a/bspinfo/bspinfo.cc +++ b/bspinfo/bspinfo.cc @@ -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];