summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
authorjacksonmj <mj-pt@jacksonmj.co.uk>2011-08-10 10:13:39 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-08-10 23:38:56 (GMT)
commit2e323ea018369a2a929a68c725d113156ef50471 (patch)
tree64fe1a96d0cee8d40fe036f210b6e272131ba600 /src/elements
parent1713604233a4090f7f73ba86c33e72dd3c44d13c (diff)
downloadpowder-2e323ea018369a2a929a68c725d113156ef50471.zip
powder-2e323ea018369a2a929a68c725d113156ef50471.tar.gz
Update parts_lastActiveIndex when creating neut/phot
Diffstat (limited to 'src/elements')
-rw-r--r--src/elements/neut.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/elements/neut.c b/src/elements/neut.c
index 0d12a6d..85a0be2 100644
--- a/src/elements/neut.c
+++ b/src/elements/neut.c
@@ -21,6 +21,7 @@ int create_n_parts(int n, int x, int y, float vx, float vy, float temp, int t)//
return -1;
i = pfree;
pfree = parts[i].life;
+ if (i>parts_lastActiveIndex) parts_lastActiveIndex = i;
parts[i].x = (float)x;
parts[i].y = (float)y;