Fixed nonzero maxClients startup crash in SDKTools (bug 5010, r=bee).
This commit is contained in:
parent
5250d819d0
commit
7e87f56699
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user