Skip to content
Snippets Groups Projects
Commit c335e9ab authored by Franck Dary's avatar Franck Dary
Browse files

Corrected bug in ContextualModule

parent a88641ae
No related branches found
No related tags found
No related merge requests found
......@@ -173,11 +173,15 @@ void ContextualModuleImpl::addToContext(std::vector<std::vector<long>> & context
for (auto index : targetIndexes)
{
if (configIndex2ContextIndex.count(index))
{
for (auto & contextElement : context)
contextElement.push_back(configIndex2ContextIndex.at(index)+1);
contextElement.push_back(configIndex2ContextIndex.at(index));
}
else
{
for (auto & contextElement : context)
contextElement.push_back(0);
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment