--- deliantra/server/socket/init.C 2006/12/25 11:25:50 1.31 +++ deliantra/server/socket/init.C 2006/12/27 05:32:26 1.32 @@ -164,6 +164,10 @@ client::~client () { + sockvec::iterator i = find (clients.begin (), clients.end (), this); + if (i != clients.end ()) + clients.erase (i); + sfree (faces_sent, nrofpixmaps); free (stats.range); free (stats.title); @@ -175,10 +179,6 @@ { attachable::do_destroy (); - sockvec::iterator i = find (clients.begin (), clients.end (), this); - if (i != clients.end ()) - clients.erase (i); - if (pl) pl->disconnect ();