Skip to content

Commit f648b91

Browse files
committed
build fix
1 parent 855011e commit f648b91

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lightpreview/glview.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1712,13 +1712,11 @@ void GLView::renderBSP(const QString &file, const mbsp_t &bsp, const bspxentries
17121712
vertex_normal = plane_normal;
17131713
}
17141714

1715-
std::array<uint8_t, MAXLIGHTMAPS> styles;
1716-
1715+
std::vector<uint8_t> styles;
17171716
if (lightmap.facenum_to_styles.contains(fnum)) {
17181717
styles = lightmap.facenum_to_styles.at(fnum);
1719-
} else {
1720-
styles.fill(0xFF);
17211718
}
1719+
styles.resize(16, 0xFF);
17221720

17231721
verts.push_back({.pos = pos + model_offset,
17241722
.uv = uv,

0 commit comments

Comments
 (0)