Fixed client not connected error in class module.

This commit is contained in:
Richard Helgeby 2010-07-10 19:21:49 +02:00
parent 68d7476f0e
commit ec1d55a323

View File

@ -260,6 +260,12 @@ public OnClientPutInServer(client)
*/ */
public OnClientCookiesCached(client) public OnClientCookiesCached(client)
{ {
// Check if client disconnected before cookies were done caching.
if (!IsClientConnected(client))
{
return;
}
// Forward "OnCookiesCached" event to modules. // Forward "OnCookiesCached" event to modules.
ClassOnCookiesCached(client); ClassOnCookiesCached(client);
WeaponsOnCookiesCached(client); WeaponsOnCookiesCached(client);