mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 10:50:58 +00:00
[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:
parent
20536d83eb
commit
a9cc51b22c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue