Explorar el Código

Reversed operator in SortLifetime fixing #29440

(cherry picked from commit 6a23eff748b671a0a34962356d8ac36626b90f5b)
SamSindt hace 6 años
padre
commit
df2a809aae
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      scene/2d/cpu_particles_2d.h

+ 1 - 1
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;
 		}
 	};