fix: friends not updating and using incorrect world (#1724)

* fix: friends not updating and using incorrect world

* use better reset logic

* actual fix for real
This commit is contained in:
David Markowitz
2025-01-06 18:25:51 -08:00
committed by GitHub
parent 7599a2e81e
commit 23551d4ed8
3 changed files with 26 additions and 24 deletions

View File

@@ -32,7 +32,10 @@ void PlayerContainer::InsertPlayer(Packet* packet) {
return;
}
auto isLogin = !m_Players.contains(playerId);
auto& data = m_Players[playerId];
data = PlayerData();
data.isLogin = isLogin;
data.playerID = playerId;
uint32_t len;