summaryrefslogtreecommitdiff
path: root/decoder/ff_lm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ff_lm.cc')
-rw-r--r--decoder/ff_lm.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc
index 0590fa7e..5de9c321 100644
--- a/decoder/ff_lm.cc
+++ b/decoder/ff_lm.cc
@@ -465,7 +465,8 @@ LanguageModelImpl *make_lm_impl(int order, string const& f, int load_order)
return new ReuseLMI(order,ngs.get(f));
} else {
LanguageModelImpl *r=new LanguageModelImpl(order,f,load_order);
- ngs.add(f,r->get_lm());
+ if (!load_order || !ngs.have(f))
+ ngs.add(f,r->get_lm());
return r;
}
}