summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-13 12:43:48 +0200
committerGitHub <noreply@github.com>2021-10-13 12:43:48 +0200
commita564dd7c6d378525690339e1c8d86e9a82b1ebdb (patch)
tree6914dfe3a862c9eca2997f5106e1d4aff97a670f /scene/2d
parent6569635ec01d09cd34ecd0abf9d8b543ba61c39d (diff)
parent3905b4e67a93cc6214fe2cbab955e18ee128b407 (diff)
Merge pull request #53747 from manueldun/trailSectionSubdivCrash
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/gpu_particles_2d.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/gpu_particles_2d.cpp b/scene/2d/gpu_particles_2d.cpp
index 5bce705dd5..3637594e1b 100644
--- a/scene/2d/gpu_particles_2d.cpp
+++ b/scene/2d/gpu_particles_2d.cpp
@@ -163,8 +163,8 @@ void GPUParticles2D::set_trail_sections(int p_sections) {
}
void GPUParticles2D::set_trail_section_subdivisions(int p_subdivisions) {
- ERR_FAIL_COND(trail_section_subdivisions < 1);
- ERR_FAIL_COND(trail_section_subdivisions > 1024);
+ ERR_FAIL_COND(p_subdivisions < 1);
+ ERR_FAIL_COND(p_subdivisions > 1024);
trail_section_subdivisions = p_subdivisions;
update();