diff options
-rw-r--r-- | moses/src/LexicalReorderingState.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/moses/src/LexicalReorderingState.cpp b/moses/src/LexicalReorderingState.cpp index 2b181f65c..4fa9ea610 100644 --- a/moses/src/LexicalReorderingState.cpp +++ b/moses/src/LexicalReorderingState.cpp @@ -146,6 +146,9 @@ int LexicalReorderingState::ComparePrevScores(const Scores *other) const { if(other == NULL) return -1; + if(m_prevScore == NULL) + return +1; + const Scores &my = *m_prevScore; const Scores &their = *other; for(size_t i = m_offset; i < m_offset + m_configuration.GetNumberOfTypes(); i++) |