Commit bc4663c8 authored by Alexis Lebis's avatar Alexis Lebis

Merge branch 'oob_excep_fixing' into 'clusterRun'

fixing bug on OOB in some case

See merge request !6
parents 46fa9dea 5be50c8d
...@@ -292,7 +292,7 @@ int CSDVP::CSDVP_COUNTER = 0; ...@@ -292,7 +292,7 @@ int CSDVP::CSDVP_COUNTER = 0;
while(!insertRez)//if duplicataProtection (i.e. course already in this semester) while(!insertRez)//if duplicataProtection (i.e. course already in this semester)
{ {
rndIdx = CSDVP::_randomizeIn(0, pb._quantityAvailableCourses); rndIdx = CSDVP::_randomizeIn(0, pb._quantityAvailableCourses - 1 );
insertRez = tmpCourses.at(rndIdx).addTemporalFrame(pb.timeFrames().at(i)); insertRez = tmpCourses.at(rndIdx).addTemporalFrame(pb.timeFrames().at(i));
} }
idxCoursesCounter++; idxCoursesCounter++;
......
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