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;
if (playerhelpers->IsServerActivated())
{
int MaxClients = playerhelpers->GetMaxClients();
for (int i = 1; i <= MaxClients; i++)
{
@ -199,6 +201,7 @@ void CHookManager::OnPluginLoaded(IPlugin *plugin)
}
}
}
}
void CHookManager::OnPluginUnloaded(IPlugin *plugin)
{