Fix score should have been +=

This commit is contained in:
Kenneth Heafield 2012-10-16 17:18:56 +01:00
parent 0378a58a37
commit 3cc4d04959

View File

@ -97,7 +97,7 @@ template <class Model> PartialEdge EdgeGenerator::Pop(Context<Model> &context, P
if (split) {
// We have an alternate.
top.SetScore(top_nt[victim].Bound() - old_bound);
top.SetScore(top.GetScore() + top_nt[victim].Bound() - old_bound);
// TODO: dedupe?
generate_.push(top);
} else {