fixed minor problem that can cause stack trashing

This commit is contained in:
Magnus Auvinen 2007-12-16 09:56:26 +00:00
parent d9ad96384b
commit d83b83a7e5

View file

@ -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]++;
}
}