Commit 5be50c8d authored by Alexis Lebis's avatar Alexis Lebis

fixing bug on OOB in some case

parent fdebfb3f
......@@ -292,7 +292,7 @@ int CSDVP::CSDVP_COUNTER = 0;
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));
}
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