I'm writing a GP2X game in C++. I have created a class called "Enemy", and then created a vector of Enemy called "enemies". When an enemy is killed, the enemy is removed from the vector using "enemies.erase(enemies.begin()+i)". This works, but when the last enemy is killed (enemies becomes empty?) the game quits. Any ideas why this would happen?
--
moto