Fix buffer overrun in CPUParticles3D

(cherry picked from commit 89980dd9c9)
This commit is contained in:
RedworkDE 2023-03-07 15:36:57 +01:00 committed by Yuri Sizov
parent b4a1bfd6d5
commit f9bb1d3174

View file

@ -1207,7 +1207,7 @@ void CPUParticles3D::_update_particle_data_buffer() {
ptr[10] = t.basis.rows[2][2]; ptr[10] = t.basis.rows[2][2];
ptr[11] = t.origin.z; ptr[11] = t.origin.z;
} else { } else {
memset(ptr, 0, sizeof(Transform3D)); memset(ptr, 0, sizeof(float) * 12);
} }
Color c = r[idx].color; Color c = r[idx].color;