mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed minor problem that can cause stack trashing
This commit is contained in:
parent
d9ad96384b
commit
d83b83a7e5
|
@ -238,7 +238,8 @@ int gameobject::getteam(int notthisid)
|
|||
{
|
||||
if(players[i].client_id != -1 && players[i].client_id != notthisid)
|
||||
{
|
||||
numplayers[players[i].team]++;
|
||||
if(players[i].team == 0 || players[i].team == 1)
|
||||
numplayers[players[i].team]++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue