fix: Fix NetStateGumps and other Gumps cleanup (#1919)

This commit is contained in:
Stefano Merotta 2024-08-10 18:57:28 +02:00 • committed by GitHub
parent 8282b00ca2
commit 6fe01488ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 73 additions and 158 deletions

View file

@ -1541,7 +1541,7 @@ namespace Server.Engines.ConPVP
p.Nullify(pl);
pm.DuelPlayer = null;
foreach (var g in init.GetAllGumps())
foreach (var g in init.GetGumps())
{
if (g is ParticipantGump pg && pg.Participant == p)
{
@ -1576,7 +1576,7 @@ namespace Server.Engines.ConPVP
var send = true;
foreach (var g in init.GetAllGumps())
foreach (var g in init.GetGumps())
{
if (g is ParticipantGump pg && pg.Participant == p)
{
@ -1620,7 +1620,7 @@ namespace Server.Engines.ConPVP
var send = true;
foreach (var g in init.GetAllGumps())
foreach (var g in init.GetGumps())
{
if (g is ParticipantGump pg && pg.Participant == p)
{