Ok, so this is my problem: Yesterday, my code was working perfectly, if slowly. Today, my code isn't. It crashes for no reason that I can see. This is the function:
I found out that it crashed before it got into the move() function, and then I found out that whenever it crashed, it was because the vector was empty but size() returned a 10-digit number! Is my vector class corrupted or something?
void Alien::handleShots(GFX& gfx)
for(int i = 0; i < shots.size(); ++i)
if(!shots[i]->move()) //Crashes here
P.S. I haven't changed my code since yesterday.