summaryrefslogtreecommitdiff
path: root/src/elements/plsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/elements/plsm.c')
-rw-r--r--src/elements/plsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/elements/plsm.c b/src/elements/plsm.c
index 3bab693..6cd0275 100644
--- a/src/elements/plsm.c
+++ b/src/elements/plsm.c
@@ -2,7 +2,7 @@
int graphics_PLSM(GRAPHICS_FUNC_ARGS)
{
- int caddress = restrict_flt(restrict_flt((float)parts[i].life, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3);
+ int caddress = restrict_flt(restrict_flt((float)cpart->life, 0.0f, 200.0f)*3, 0.0f, (200.0f*3)-3);
*colr = (unsigned char)plasma_data[caddress];
*colg = (unsigned char)plasma_data[caddress+1];
*colb = (unsigned char)plasma_data[caddress+2];