Fixes crashes when character dies, and when teleporting.

This commit is contained in:
hondacrx
2024-02-22 16:17:27 -05:00
parent 15d714f050
commit f6b1c24297
7 changed files with 25 additions and 19 deletions
+2 -2
View File
@@ -7771,11 +7771,11 @@ namespace Game.Entities
WorldPacket buffer = new();
UpdateMask mask = new(191);
UpdateMask mask = m_unitData.GetStaticUpdateMask();
m_unitData.AppendAllowedFieldsMaskForFlag(mask, flags);
m_unitData.WriteUpdate(buffer, mask, true, this, target);
UpdateMask mask2 = new(161);
UpdateMask mask2 = m_playerData.GetStaticUpdateMask();
m_playerData.AppendAllowedFieldsMaskForFlag(mask2, flags);
m_playerData.WriteUpdate(buffer, mask2, true, this, target);