light: fix ambiguous constructor error on gcc12

This commit is contained in:
Eric Wasylishen 2023-02-12 10:23:58 -07:00
parent c954953735
commit 9ac75563fd
1 changed files with 1 additions and 1 deletions

View File

@ -1409,7 +1409,7 @@ static void LightGrid(bspdata_t *bspdata)
std::function<std::tuple<lightgrid_samples_t, bool>(uint32_t, qvec3i)> octree_lookup_r;
octree_lookup_r = [&](uint32_t node_index, qvec3i test_point) -> std::tuple<lightgrid_samples_t, bool> {
if (node_index & FLAG_OCCLUDED) {
return {{}, true};
return {lightgrid_samples_t{}, true};
}
if (node_index & FLAG_LEAF) {
auto &leaf = octree_leafs.at(node_index & (~FLAG_LEAF));