summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRafał Mikrut <mikrutrafal@protonmail.com>2022-10-01 21:09:22 +0200
committerRafał Mikrut <mikrutrafal@protonmail.com>2022-10-01 21:09:22 +0200
commit2233624152a3b041daeab8b0fd88a2061b7b8565 (patch)
tree27b6bc31c38e0629a23ea6142f54724045aa2bc5 /scene/2d
parent24115beb3c69e648b1d48f969785b9b0729e1be8 (diff)
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 3fd1c7fd0f..00e399b703 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;