[particles] Use correct index for source ramp

This fixes both the weird colors and a segfault in the 32-bit software
renderer.
This commit is contained in:
Bill Currie 2022-03-08 20:16:18 +09:00
parent 20536d83eb
commit a9cc51b22c

View file

@ -100,7 +100,7 @@ R_RunParticles (float dT)
if (p->live <= 0 || p->ramp >= parm->ramp_max) {
continue;
}
const int *ramp = ps->partramps[j];
const int *ramp = ps->partramps[i];
if (i > j) {
ps->particles[j] = *p;
ps->partparams[j] = *parm;