diff --git a/light/light.cc b/light/light.cc index 5c05790d..e6a75615 100644 --- a/light/light.cc +++ b/light/light.cc @@ -1451,19 +1451,19 @@ static void LightGrid(bspdata_t *bspdata) str <= grid_mins; str <= num_styles; - str << static_cast(root_node); + str <= static_cast(root_node); // the nodes (fixed-size) - str << static_cast(octree_nodes.size()); + str <= static_cast(octree_nodes.size()); for (const auto &node : octree_nodes) { - str << node.division_point; + str <= node.division_point; for (const auto child : node.children) { - str << child; + str <= child; } } // the leafs (each is variable sized) - str << static_cast(octree_leafs.size()); + str <= static_cast(octree_leafs.size()); for (const auto &leaf : octree_leafs) { str <= leaf.mins; str <= leaf.size;