Moved GetDefaultClassIndex outside the loop.

This commit is contained in:
richard 2008-12-03 10:48:11 +01:00
parent a6c726c193
commit 2d4f5d7ae6
1 changed files with 2 additions and 1 deletions

View File

@ -121,9 +121,10 @@ public OnMapStart()
if (!GetConVarBool(gCvars[CVAR_CLASSES_SAVE]))
{
new i;
new classindex = GetDefaultClassIndex();
for (i = 1; i <= MAXPLAYERS; i++)
{
pClass[i] = GetDefaultClassIndex();
pClass[i] = classindex;
}
}
}