Skip to content

playerarray is too small

Alam Ed Arias requested to merge arraytoosmall into master
p_inter.c: In function ‘P_CheckTimeLimit’:
p_inter.c:1835:68: error: array subscript is above array bounds [-Werror=array-bounds]
       if (players[playerarray[i-1]].marescore < players[playerarray[k]].marescore)
                                                                    ^
p_inter.c:1839:19: error: array subscript is above array bounds [-Werror=array-bounds]
        playerarray[k] = tempplayer;
                   ^
cc1: all warnings being treated as errors

Merge request reports

Loading