From ca93a12896c5d3b4799909dd247efb0bb75ae951 Mon Sep 17 00:00:00 2001 From: Mohsen Taghavi <78661162+mohsenemx@users.noreply.github.com> Date: Tue, 12 Mar 2024 00:46:12 +0330 Subject: [PATCH] fixed a issue where playerlist count would start from 0 --- static/fx_core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/fx_core.js b/static/fx_core.js index 68c8b87..9e9994b 100644 --- a/static/fx_core.js +++ b/static/fx_core.js @@ -246,7 +246,7 @@ const playerList = new (function () { let listContent = `

Players (${gHumans})

`; for (let i = 0; i < gLobbyMaxJoin; i++) { if (i === gHumans) listContent += `

Bots (${gLobbyMaxJoin - gHumans})

`; - listContent += `${i}. ${escapeHtml(playerNames[i])}` + listContent += `${i + 1}. ${escapeHtml(playerNames[i])}` } document.getElementById("playerlist_content").innerHTML = listContent; document.getElementById("playerlist_content").setAttribute("class", getVar("gIsTeamGame") ? "clickable" : "");