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

@ -37,15 +37,18 @@ public static partial class GumpSystem
BaseGump baseGump = null;
foreach (var g in GetAll(state))
if (_gumps.TryGetValue(state, out var gumps))
{
if (g.Serial != serial || g.TypeID != typeId)
foreach (var g in gumps)
{
continue;
}
if (g.Serial != serial || g.TypeID != typeId)
{
continue;
}
baseGump = g;
break;
baseGump = g;
break;
}
}
if (baseGump != null)