Commit bcc70b52 authored by Alexis Lebis's avatar Alexis Lebis

fix cap at 1 for distrib

parent 2382f356
......@@ -481,8 +481,10 @@ int CSDVP::CSDVP_COUNTER = 0;
if(pb._distributedCompetencies.at(idx) == -1) //not yet assigned? Then first 0
pb._distributedCompetencies.at(idx) = 0;
pb._distributedCompetencies.at(idx) += cpt.magnitude().value();
if(pb._distributedCompetencies.at(idx) > 1) //if range overflow --> rebase to one
pb._distributedCompetencies.at(idx) = 1;
// Overflow in distributedCompetencies is not an issue since it tracks how many magnitude has been put into a comp
// if(pb._distributedCompetencies.at(idx) > 1) //if range overflow --> rebase to one
// pb._distributedCompetencies.at(idx) = 1;
}
// --------- END GENERATION RELATED FUNCTIONS ---------
......
Markdown is supported
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