From 3cc4d049599eccd08760a7fe75ae99428cdd8e23 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Tue, 16 Oct 2012 17:18:56 +0100 Subject: [PATCH] Fix score should have been += --- search/edge_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/edge_generator.cc b/search/edge_generator.cc index 654f9e36f..43e0188fa 100644 --- a/search/edge_generator.cc +++ b/search/edge_generator.cc @@ -97,7 +97,7 @@ template PartialEdge EdgeGenerator::Pop(Context &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 {