I have a vector to hold objects of a bullet class. Is this the correct way to add bullets to the vector structure?
std::vector<Bullet> bullets;
Bullet newbullet(thisPlayer.x+PLAYERSPRITEWIDTH,(thisPlayer.y-(PLAYERSPRITEHEIGHT/2)));
bullets.push_back(newbullet);
I don't think the bullets get added this way.