]> ruin.nu Git - germs.git/blobdiff - src/genesorter.cpp
a little more refactoring, name might just as well return const char* since it's...
[germs.git] / src / genesorter.cpp
index 602a6dde276318e069fa8e1496c005110e9b27d4..81b9da56635b03bf265de647bf349ac91f917079 100644 (file)
@@ -49,7 +49,7 @@ GeneSorter::ActionList GeneSorter::sort(const GeneOrder& go, const Model& m){
                if (safe.size() > 0){
                        priority_queue<pair<double,SortAction>,vector<pair<double,SortAction> >, ScoreCmp > pq;
                        for (ActionList::iterator sa = safe.begin(); sa != safe.end(); ++sa){
-                               pq.push(pair<double,SortAction>(m.score(*sa),*sa));
+                               pq.push(pair<double,SortAction>(m.score(*sa,temp),*sa));
                        }
                        SortAction sa = pq.top().second;
                        sa(temp);