Skip to content

Commit da97f68

Browse files
committed
fixup for mface_t::styles rework commit
fixes asan error
1 parent f6c6c8e commit da97f68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/bspinfo.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ full_atlas_t build_lightmap_atlas(const mbsp_t &bsp, const bspxentries_t &bspx,
561561
for (int i = 0; i < s.size(); i++)
562562
s[i] = styles[i];
563563
} else {
564-
memcpy(s.data(), face.face->styles.data(), sizeof(s));
564+
s = face.face->styles;
565565
}
566566

567567
result.facenum_to_styles[Face_GetNum(bsp, face.face)] = s;

0 commit comments

Comments
 (0)