fix: Fix NetStateGumps and other Gumps cleanup (#1919)
This commit is contained in:
parent
8282b00ca2
commit
6fe01488ef
7 changed files with 73 additions and 158 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue