summaryrefslogtreecommitdiff
path: root/scene/2d
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/2d
parent33f4c5282f3f6f64cd97c30978d130b6efbc94ce (diff)
parent2233624152a3b041daeab8b0fd88a2061b7b8565 (diff)
Merge pull request #66720 from qarmin/unintialized_memory
Remove usage of unitialized variables
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/cpu_particles_2d.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/cpu_particles_2d.h b/scene/2d/cpu_particles_2d.h
index ea735411a8..141e5f9139 100644
--- a/scene/2d/cpu_particles_2d.h
+++ b/scene/2d/cpu_particles_2d.h
@@ -152,8 +152,8 @@ private:
Vector2 direction = Vector2(1, 0);
real_t spread = 45.0;
- real_t parameters_min[PARAM_MAX];
- real_t parameters_max[PARAM_MAX];
+ real_t parameters_min[PARAM_MAX] = {};
+ real_t parameters_max[PARAM_MAX] = {};
Ref<Curve> curve_parameters[PARAM_MAX];
Color color;