summaryrefslogtreecommitdiff
path: root/scene/resources/particle_process_material.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2022-10-05 11:42:47 +0200
committerRémi Verschelde <rverschelde@gmail.com>2022-10-05 11:42:47 +0200
commit5b6ccf2fd2c0e01481bad47d4403e7173476bfe2 (patch)
tree9b12a6a603d21f6e0feee43a7c06f031e0fd284d /scene/resources/particle_process_material.h
parent33f4c5282f3f6f64cd97c30978d130b6efbc94ce (diff)
parent2233624152a3b041daeab8b0fd88a2061b7b8565 (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.h6
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;