Commit eb51b8fb authored by James Willis's avatar James Willis
Browse files

Zeroed particle fields.

parent c690636d
......@@ -47,6 +47,7 @@ struct part *make_particles(int count, double *offset, double spacing, double h,
count * sizeof(struct part)) != 0) {
error("couldn't allocate particles, no. of particles: %d", (int)count);
bzero(particles, count * sizeof(struct part));
/* Construct the particles */
struct part *p;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment