Commit c335e9ab authored by Franck Dary's avatar Franck Dary
Browse files

Corrected bug in ContextualModule

parent a88641ae
......@@ -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);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment