diff options
author | Manuel Dun <manueldun@gmail.com> | 2021-10-12 20:22:33 -0400 |
---|---|---|
committer | Manuel Dun <manueldun@gmail.com> | 2021-10-12 20:22:33 -0400 |
commit | 3905b4e67a93cc6214fe2cbab955e18ee128b407 (patch) | |
tree | 08a97bff3e5e385a2a30ddbcede960c4c9ef78ef /scene | |
parent | 6f1d2133bb2b77048bf13a8180f57bff1a747226 (diff) |
fix so the error macro uses the incomming parameter p_subdivision instead of the class member
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/gpu_particles_2d.cpp | 4 |
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(); |