summaryrefslogtreecommitdiff
path: root/decoder/incremental.cc
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-10-22 14:24:02 +0100
committerKenneth Heafield <github@kheafield.com>2012-10-22 14:24:02 +0100
commitbe2b034ae9cb50ed148bd106db57214954f200d7 (patch)
tree44fe1b68d116d1c7c5ad937991a221208715e1a2 /decoder/incremental.cc
parent0ff82d648446645df245decc1e9eafad304eb327 (diff)
Fix no path found error
Diffstat (limited to 'decoder/incremental.cc')
-rw-r--r--decoder/incremental.cc2
1 files changed, 1 insertions, 1 deletions
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 <class Model> void Incremental<Model>::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);