aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);