From be2b034ae9cb50ed148bd106db57214954f200d7 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Mon, 22 Oct 2012 14:24:02 +0100 Subject: Fix no path found error --- decoder/incremental.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'decoder') diff --git a/decoder/incremental.cc b/decoder/incremental.cc index 768bbd65..a9369374 100644 --- a/decoder/incremental.cc +++ b/decoder/incremental.cc @@ -124,7 +124,7 @@ template void Incremental::Search(unsigned int pop_limit, c gen.Search(context, vertex_gen); } const search::Final top = out_vertices[hg.nodes_.size() - 2].BestChild(); - if (top.Valid()) { + if (!top.Valid()) { std::cout << "NO PATH FOUND" << std::endl; } else { PrintFinal(hg, top); -- cgit v1.2.3