From: Mario Date: Wed, 23 Aug 2017 12:37:18 +0000 (+1000) Subject: Make sure local Team is an int (potential but unlikely fix for an assertion failure) X-Git-Tag: xonotic-v0.8.5~2517 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3c29f53ea4ad216354804ef23ca443cc52c49afa;p=xonotic%2Fxonotic-data.pk3dir.git Make sure local Team is an int (potential but unlikely fix for an assertion failure) --- 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;