]> mj.ucw.cz Git - leo.git/blobdiff - lab-evolution.c
Labelling: Bugfixes in get_closure
[leo.git] / lab-evolution.c
index 169a9bc0aa7ccfffa087786a0fd6823a9aace8a0..8f91446c8caaf08635f95ae64eb5e75bc482f602 100644 (file)
@@ -457,7 +457,7 @@ static struct individual **perform_crossover(struct individual *parent1, struct
     {
       DEBUG(dbg_breeding, VERBOSITY_PLACEMENT, "Creating symbol closure for placement %u\n", i);
 
-      struct placement **clos_symbols = get_closure(&(parent1->placements[i]));
+      struct placement **clos_symbols = get_closure(&(parent1->placements[i]), parent2);
       int x = randint(0, 2);
 
       if (x == 0)