Commit f7666c03 authored by Alexis Lebis's avatar Alexis Lebis

Fix a bug on the CSDVP::mapCourseToPosition function

parent a45c9975
...@@ -182,7 +182,7 @@ int CSDVP::CSDVP_COUNTER = 0; ...@@ -182,7 +182,7 @@ int CSDVP::CSDVP_COUNTER = 0;
} }
int CSDVP::mapCourseToPosition(const Course & c) int CSDVP::mapCourseToPosition(const Course & c)
{ {
for(int i = 0; i << this->coursesCatalogue().size(); i++) for(int i = 0; i < this->coursesCatalogue().size(); i++)
if(c == this->coursesCatalogue().at(i)) if(c == this->coursesCatalogue().at(i))
return i; return i;
return -1; return -1;
......
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