Fix buddy list not syncing properly

I couldn't reproduce this on my public server, but the list would show up empty sometimes on initial login on my local server, so I threw it in for good measure.
This commit is contained in:
Gent
2020-11-08 13:58:44 -05:00
parent 30de5c1734
commit 3f5a9c8811
3 changed files with 11 additions and 1 deletions

View File

@@ -404,7 +404,7 @@ void PlayerManager::enterPlayer(CNSocket* sock, CNPacketData* data) {
MissionManager::failInstancedMissions(sock);
// send over buddy list
// initial buddy sync
BuddyManager::refreshBuddyList(sock);
for (auto& pair : PlayerManager::players)