Fixed nonzero maxClients startup crash in SDKTools (bug 5010, r=bee).

This commit is contained in:
Nicholas Hastings 2011-07-07 19:51:05 -04:00
parent 5250d819d0
commit 7e87f56699

View File

@ -190,6 +190,8 @@ void CHookManager::OnPluginLoaded(IPlugin *plugin)
PRCH_used = true; PRCH_used = true;
if (playerhelpers->IsServerActivated())
{
int MaxClients = playerhelpers->GetMaxClients(); int MaxClients = playerhelpers->GetMaxClients();
for (int i = 1; i <= MaxClients; i++) for (int i = 1; i <= MaxClients; i++)
{ {
@ -198,6 +200,7 @@ void CHookManager::OnPluginLoaded(IPlugin *plugin)
OnClientPutInServer(i); OnClientPutInServer(i);
} }
} }
}
} }
void CHookManager::OnPluginUnloaded(IPlugin *plugin) void CHookManager::OnPluginUnloaded(IPlugin *plugin)