fix(core): Converts to ref struct enumerators (#426)
- [X] Converts boat moving entities to ref struct enumerator - [X] Converts skills to a ref struct enumerator - [X] Converts type cache to ref struct enumerator
This commit is contained in:
parent
c6ef6ff80a
commit
9ef7752beb
13 changed files with 352 additions and 198 deletions
|
|
@ -2711,9 +2711,15 @@ namespace Server.Gumps
|
|||
}
|
||||
else
|
||||
{
|
||||
results = Accounts.GetAccounts()
|
||||
.Where(acct => acct.Username.InsensitiveContains(match))
|
||||
.ToList();
|
||||
results = new List<IAccount>();
|
||||
foreach (var acct in Accounts.GetAccounts())
|
||||
{
|
||||
if (acct.Username.InsensitiveContains(match))
|
||||
{
|
||||
results.Add(acct);
|
||||
}
|
||||
}
|
||||
|
||||
results.Sort(AccountComparer.Instance);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue