summaryrefslogtreecommitdiff
path: root/decoder/incremental.cc
diff options
context:
space:
mode:
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);