aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-12-08 17:08:53 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-12-08 17:08:53 -0300
commiteb07e8e87ab43de3907f4986d329b25dc8a750d2 (patch)
tree9eaeae3a2a3944ea5554fc557997b466da0c8b2b
parentdb1fabd9c432363ba05622c02e0585fe64ad7286 (diff)
downloadgame-eb07e8e87ab43de3907f4986d329b25dc8a750d2.tar.gz
game-eb07e8e87ab43de3907f4986d329b25dc8a750d2.zip
fix problem with playerlist creation
-rw-r--r--src/crplayer.cc6
1 files 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);