From ec1d55a32329eecfff8e2f8d633a3062a6e8c9e0 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Sat, 10 Jul 2010 19:21:49 +0200 Subject: [PATCH] Fixed client not connected error in class module. --- src/zombiereloaded.sp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/zombiereloaded.sp b/src/zombiereloaded.sp index 2c85d19..ffc108c 100644 --- a/src/zombiereloaded.sp +++ b/src/zombiereloaded.sp @@ -260,6 +260,12 @@ public OnClientPutInServer(client) */ public OnClientCookiesCached(client) { + // Check if client disconnected before cookies were done caching. + if (!IsClientConnected(client)) + { + return; + } + // Forward "OnCookiesCached" event to modules. ClassOnCookiesCached(client); WeaponsOnCookiesCached(client);