From e0cc79c3816d4576d34057b84364680add052697 Mon Sep 17 00:00:00 2001 From: David Markowitz Date: Wed, 30 Oct 2024 00:02:37 -0700 Subject: [PATCH] fix crash tested that sending an empty packet with this messageID no longer crashes the chat server --- dChatServer/PlayerContainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dChatServer/PlayerContainer.cpp b/dChatServer/PlayerContainer.cpp index f279195e..90686e0e 100644 --- a/dChatServer/PlayerContainer.cpp +++ b/dChatServer/PlayerContainer.cpp @@ -148,9 +148,8 @@ void PlayerContainer::CreateTeamServer(Packet* packet) { if (team != nullptr) { team->zoneId = zoneId; + UpdateTeamsOnWorld(team, false); } - - UpdateTeamsOnWorld(team, false); } void PlayerContainer::BroadcastMuteUpdate(LWOOBJID player, time_t time) {