From 7e978b57cc75e9802242937253df8b27babb4c6f Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Mon, 31 Jul 2017 23:43:17 -0400 Subject: Fix removing clients from clientCast --- server.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.c b/server.c index 9724359..5aaf855 100755 --- a/server.c +++ b/server.c @@ -109,8 +109,9 @@ static void clientCast(const struct Client *origin, const struct ServerMessage * if (client->tileY != origin->tileY) continue; if (!clientSend(client, msg)) { + struct Client *dead = client; client = client->next; - clientRemove(client); + clientRemove(dead); if (!client) break; } } -- cgit 1.4.1