View difference between Paste ID: hVPrvW1A and LciSumcD
SHOW: | | - or go back to the newest paste.
1-
for (std::vector<Circle>::size_type i = 0; i != added_circles.size(); i++) {
1+
for(std::vector<Circle*>::iterator circle = added_circles.begin(); circle != added_circles.end(); ++circle) {
2-
				Circle * circle = added_circles[i];
2+
	if ((*circle)->timesDrawn > maxTimesDrawn) {
3-
3+
		added_circles.remove((*circle));
4-
				if (circle->timesDrawn > maxTimesDrawn) {
4+
	}
5-
					added_circles.erase(added_circles.begin() + i);
5+
}