This commit is contained in:
Hieu Hoang 2013-07-16 17:11:12 +01:00
parent 5cbfcacccc
commit 87c346654e

View File

@ -151,8 +151,8 @@ void PhraseDictionaryMemory::GetTargetPhraseCollectionBatch(const InputPathList
const PhraseDictionaryNodeMemory *ptNode = prevPtNode->GetChild(lastWord);
if (ptNode) {
const TargetPhraseCollection *targetPhrases = ptNode->GetTargetPhraseCollection();
node.SetTargetPhrases(*this, targetPhrases, ptNode);
const TargetPhraseCollection &targetPhrases = ptNode->GetTargetPhraseCollection();
node.SetTargetPhrases(*this, &targetPhrases, ptNode);
} else {
node.SetTargetPhrases(*this, NULL, NULL);
}