From 628ac9807ed177f0658f09b56fd8f590b9adf417 Mon Sep 17 00:00:00 2001 From: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> Date: Sun, 17 Nov 2024 16:07:40 -0800 Subject: [PATCH] fix crash (#1644) 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 f279195ea..90686e0e4 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) {