1
0
forked from 0ad/0ad

Fix game setup lobby player stats stanza.

Patch by: @nani
Differential revision: https://code.wildfiregames.com/D4213
Reviewed by: @Angen
This was SVN commit r25851.
This commit is contained in:
Freagarach 2021-08-19 17:01:19 +00:00
parent 6400a4a0c5
commit 2cf908a974

View File

@ -126,7 +126,7 @@ class LobbyGameRegistrationController
{
let pData = { "Name": g_PlayerAssignments[guid].name };
if (g_PlayerAssignments[guid].player <= g_GameSettings.playerCount.nbPlayers)
if (g_PlayerAssignments[guid].player != -1)
++connectedPlayers;
else
pData.Team = "observer";