FIx some player color issues found by valgrind.

This commit is contained in:
Bill Currie 2012-07-02 19:24:39 +09:00
parent 8fa92bf206
commit 602cd84e21
2 changed files with 4 additions and 2 deletions

View file

@ -608,8 +608,8 @@ CL_RelinkEntities (void)
ent->skinnum = new->skinnum;
if (i <= cl.maxclients) {
ent->skin = mod_funcs->Skin_SetColormap (ent->skin, i);
mod_funcs->Skin_SetTranslation (i, cl.scores[i].topcolor,
cl.scores[i].bottomcolor);
mod_funcs->Skin_SetTranslation (i, cl.scores[i - 1].topcolor,
cl.scores[i - 1].bottomcolor);
}
}
ent->scale = new->scale;

View file

@ -363,6 +363,8 @@ CL_ParseServerInfo (void)
for (i = 0; i < cl.maxclients; i++) {
cl.scores[i].info = Info_ParseString ("name\\", 0, 0);
cl.scores[i].name = Info_Key (cl.scores[i].info, "name");
cl.scores[i].topcolor = 0;
cl.scores[i].bottomcolor = 0;
}
// parse gametype