summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorSamSindt <samsground@gmail.com>2019-06-06 12:49:48 -0700
committerSamSindt <samsground@gmail.com>2019-06-06 12:49:48 -0700
commit6a23eff748b671a0a34962356d8ac36626b90f5b (patch)
treeb9d9f83e28e171154d8698e71ffebfd387d7c263 /scene/2d
parent197b65f32ac811f79bc5599fbfe8cf83914b6873 (diff)
Reversed operator in SortLifetime fixing #29440
Diffstat (limited to 'scene/2d')
-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;
}
};