summaryrefslogtreecommitdiff
path: root/src/elements
diff options
context:
space:
mode:
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;