X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=src%2Fgenesorter.cpp;h=81b9da56635b03bf265de647bf349ac91f917079;hb=6c059509f0e7230c2352963e559b623fadd27810;hp=602a6dde276318e069fa8e1496c005110e9b27d4;hpb=efe42ca948704593c847996d0ae8da71d15bb75b;p=germs.git 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);