From: Karryanna Date: Wed, 13 May 2015 16:51:25 +0000 (+0200) Subject: Labelling: make_population and copy_individual fixes X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3232a51a5fed20b6d3f0d6b9df0b8c66fdc75ca4;p=leo.git Labelling: make_population and copy_individual fixes --- diff --git a/labeller.c b/labeller.c index f2792ee..1db25fc 100644 --- a/labeller.c +++ b/labeller.c @@ -1074,6 +1074,10 @@ void make_population(void) { for (int i=0; ipenalty = dest->penalty; + dest->penalty = src->penalty; GARY_INIT(dest->placements, GARY_SIZE(src->placements)); for (uns i=0; iplacements); i++) { dest->placements[i] = src->placements[i]; + dest->placements[i].map_links = NULL; + } + for (uns j=0; jmap); + GARY_INIT(part->placement, 0); + struct map_placement *mp = GARY_PUSH(part->placement); + mp->placement = &dummy_placement; + mp->next = mp->prev = NULL; } }