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;
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user