Make sure local Team is an int (potential but unlikely fix for an assertion failure)
authorMario <mario@smbclan.net>
Wed, 23 Aug 2017 12:37:18 +0000 (22:37 +1000)
committerMario <mario@smbclan.net>
Wed, 23 Aug 2017 12:37:18 +0000 (22:37 +1000)
qcsrc/client/hud/panel/scoreboard.qc

index 34ecd83..3a11bdb 100644 (file)
@@ -153,13 +153,12 @@ float SetTeam(entity pl, float Team);
 //float lastpnum;
 void Scoreboard_UpdatePlayerTeams()
 {
-       float Team;
        entity pl, tmp;
        //int num = 0;
        for(pl = players.sort_next; pl; pl = pl.sort_next)
        {
                //num += 1;
-               Team = entcs_GetScoreTeam(pl.sv_entnum);
+               int Team = entcs_GetScoreTeam(pl.sv_entnum);
                if(SetTeam(pl, Team))
                {
                        tmp = pl.sort_prev;