fix empty arrays bug

This commit is contained in:
Lirikl 2023-05-13 11:43:08 +03:00
parent 9e91e19f2b
commit cb2976491b

View File

@ -159,6 +159,7 @@ public:
std::vector<MutableColumns> data_arrays; std::vector<MutableColumns> data_arrays;
data_arrays.resize(array_count); data_arrays.resize(array_count);
if (max_array_size > 0)
for (size_t i = 0; i < array_count; ++i) for (size_t i = 0; i < array_count; ++i)
data_arrays[i] = arrays[i].column->scatter(max_array_size, selector); data_arrays[i] = arrays[i].column->scatter(max_array_size, selector);