Index: code/cgame/cg_players.c =================================================================== --- code/cgame/cg_players.c (Revision 175) +++ code/cgame/cg_players.c (Arbeitskopie) @@ -653,7 +653,7 @@ const char *dir, *fallback; int i, modelloaded; const char *s; - int clientNum; + unsigned clientNum; char teamname[MAX_QPATH]; teamname[0] = 0; @@ -727,6 +727,8 @@ // reset any existing players and bodies, because they might be in bad // frames for this new model clientNum = ci - cgs.clientinfo; + if(clientNum > MAX_CLIENTS) + clientNum = 0; for ( i = 0 ; i < MAX_GENTITIES ; i++ ) { if ( cg_entities[i].currentState.clientNum == clientNum && cg_entities[i].currentState.eType == ET_PLAYER ) { # vim: syntax=diff