Commit e81d79e3 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

wrong offset.

parent ad63d716
......@@ -1014,7 +1014,7 @@ void engine_exchange_strays(struct engine *e, size_t offset_parts,
for (int k = 0; k < p->nr_gparts_in; k++) {
struct gpart *gp = &s->gparts[offset_gparts + count_gparts + k];
if (gp->id >= 0) {
struct part *p = &s->parts[offset_gparts + count_parts + gp->id];
struct part *p = &s->parts[offset_parts + count_parts + gp->id];
gp->part = p;
p->gpart = gp;
}
......
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