summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-06-11 12:14:26 +0200
committerGitHub <noreply@github.com>2019-06-11 12:14:26 +0200
commit7b883d7d50fdcac09afe09de859816da07ddc1e7 (patch)
tree627f29f85fb13b8df5c040769aad02c0853ee4fa /scene
parent227b5d20ee18397d507acbbb7a1f89edc503e713 (diff)
parent6a23eff748b671a0a34962356d8ac36626b90f5b (diff)
Merge pull request #29558 from SamSindt/fix-lifetime-reversed-CPUParticles2D
Reversed operator in SortLifetime fixing #29440
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/cpu_particles_2d.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/cpu_particles_2d.h b/scene/2d/cpu_particles_2d.h
index 23d2586331..81343a4604 100644
--- a/scene/2d/cpu_particles_2d.h
+++ b/scene/2d/cpu_particles_2d.h
@@ -116,7 +116,7 @@ private:
const Particle *particles;
bool operator()(int p_a, int p_b) const {
- return particles[p_a].time < particles[p_b].time;
+ return particles[p_a].time > particles[p_b].time;
}
};