Commit 655198e6 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make the IDs positive again

parent 5ea4a1df
......@@ -544,6 +544,7 @@ void collect_dm_gparts(struct gpart* gparts, int Ntot, struct gpart* dmparts,
/* And collect the DM ones */
if (gparts[i].id < 0) {
memcpy(&dmparts[count], &gparts[i], sizeof(struct gpart));
dmparts[count].id = -dmparts[count].id;
count++;
}
}
......
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