From 6a23eff748b671a0a34962356d8ac36626b90f5b Mon Sep 17 00:00:00 2001 From: SamSindt Date: Thu, 6 Jun 2019 12:49:48 -0700 Subject: Reversed operator in SortLifetime fixing #29440 --- scene/2d/cpu_particles_2d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/2d') 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; } }; -- cgit v1.2.3