Sign in to follow this  
theSecondt

[SDL_net/vector] fixed

Recommended Posts

I'm afraid I don't know what your problem is. However:

Quote:

std::vector<client>::iterator l;
int index=0;

for(l= clients.begin(); l!= clients.end(); l++){ //prolly wrong.
index++;
if(index==i) break;
}


Did you mean, std::vector<client>::iterator l = clients.begin() + i; ?

Share this post


Link to post
Share on other sites
well the problem is(i presume?) in the function add_client with the vectors and whatnot.
i think that i'm adding it wrong, any thoughts on that?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this