From 615bc3e860e202a2207ab5f8dc157f3e19fb5265 Mon Sep 17 00:00:00 2001 From: Greyscale Date: Mon, 15 Jun 2009 21:45:50 -0700 Subject: [PATCH] Fixed another error from infect module. --- src/zr/infect.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zr/infect.inc b/src/zr/infect.inc index f201110..dd5d461 100644 --- a/src/zr/infect.inc +++ b/src/zr/infect.inc @@ -128,6 +128,12 @@ InfectClientInit(client) */ InfectOnClientDisconnect(client) { + // If client is still connecting, then stop. + if (!IsClientInGame(client)) + { + return; + } + // If zombie hasn't spawned, then stop. if (!g_bZombieSpawned) {