From eb07e8e87ab43de3907f4986d329b25dc8a750d2 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Mon, 8 Dec 2025 17:08:53 -0300 Subject: fix problem with playerlist creation --- src/crplayer.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crplayer.cc b/src/crplayer.cc index 66e5ba5..a082083 100644 --- a/src/crplayer.cc +++ b/src/crplayer.cc @@ -1949,9 +1949,9 @@ void CreatePlayerList(bool Online){ continue; } - strcpy(&PlayerNames[Index * 30], Player->Name); - PlayerLevels[Index] = Player->Skills[SKILL_LEVEL]->Get(); - PlayerProfessions[Index] = Player->GetActiveProfession(); + strcpy(&PlayerNames[NumberOfPlayers * 30], Player->Name); + PlayerLevels[NumberOfPlayers] = Player->Skills[SKILL_LEVEL]->Get(); + PlayerProfessions[NumberOfPlayers] = Player->GetActiveProfession(); NumberOfPlayers += 1; } Log("load", "%d %d\n", (int)time(NULL), FirstFreePlayer); -- cgit v1.2.3