From 3c29f53ea4ad216354804ef23ca443cc52c49afa Mon Sep 17 00:00:00 2001 From: Mario Date: Wed, 23 Aug 2017 22:37:18 +1000 Subject: [PATCH] Make sure local Team is an int (potential but unlikely fix for an assertion failure) --- qcsrc/client/hud/panel/scoreboard.qc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcsrc/client/hud/panel/scoreboard.qc b/qcsrc/client/hud/panel/scoreboard.qc index 34ecd834f..3a11bdb1e 100644 --- a/qcsrc/client/hud/panel/scoreboard.qc +++ b/qcsrc/client/hud/panel/scoreboard.qc @@ -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; -- 2.39.2