X-Git-Url: https://ruin.nu/git/?p=germs.git;a=blobdiff_plain;f=src%2Fgenesorter.cpp;h=81b9da56635b03bf265de647bf349ac91f917079;hp=602a6dde276318e069fa8e1496c005110e9b27d4;hb=d7c119fefaf9cce07974afbefb4b6a017689a961;hpb=efe42ca948704593c847996d0ae8da71d15bb75b diff --git a/src/genesorter.cpp b/src/genesorter.cpp index 602a6dd..81b9da5 100644 --- a/src/genesorter.cpp +++ b/src/genesorter.cpp @@ -49,7 +49,7 @@ GeneSorter::ActionList GeneSorter::sort(const GeneOrder& go, const Model& m){ if (safe.size() > 0){ priority_queue,vector >, ScoreCmp > pq; for (ActionList::iterator sa = safe.begin(); sa != safe.end(); ++sa){ - pq.push(pair(m.score(*sa),*sa)); + pq.push(pair(m.score(*sa,temp),*sa)); } SortAction sa = pq.top().second; sa(temp);