diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-05 11:42:47 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-05 11:42:47 +0200 |
commit | 5b6ccf2fd2c0e01481bad47d4403e7173476bfe2 (patch) | |
tree | 9b12a6a603d21f6e0feee43a7c06f031e0fd284d /scene/resources/particle_process_material.h | |
parent | 33f4c5282f3f6f64cd97c30978d130b6efbc94ce (diff) | |
parent | 2233624152a3b041daeab8b0fd88a2061b7b8565 (diff) |
Merge pull request #66720 from qarmin/unintialized_memory
Remove usage of unitialized variables
Diffstat (limited to 'scene/resources/particle_process_material.h')
-rw-r--r-- | scene/resources/particle_process_material.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/resources/particle_process_material.h b/scene/resources/particle_process_material.h index 9430e5797d..8fe9223a47 100644 --- a/scene/resources/particle_process_material.h +++ b/scene/resources/particle_process_material.h @@ -265,9 +265,9 @@ private: float spread = 0.0f; float flatness = 0.0f; - float params_min[PARAM_MAX]; - float params_max[PARAM_MAX]; - float params[PARAM_MAX]; + float params_min[PARAM_MAX] = {}; + float params_max[PARAM_MAX] = {}; + float params[PARAM_MAX] = {}; Ref<Texture2D> tex_parameters[PARAM_MAX]; Color color; |