Fix a cs_set_user_model issue with model not being persistent set on a 32th player

Related to some PR fixing cs_set_user_model() crash.
This commit is contained in:
Vincent Herbet 2017-03-10 18:33:19 +01:00 committed by GitHub
parent 115916d753
commit 55c9143b2b

View File

@ -52,7 +52,7 @@ void StartFrame()
{
g_pFunctionTable->pfnStartFrame = nullptr;
for (int i = 1; i < gpGlobals->maxClients; ++i)
for (int i = 1; i <= gpGlobals->maxClients; ++i)
{
if (Players[i].HasModel())
{