fix: Eliminates double lookup with Contains->Remove (#2539)
This commit is contained in:
parent
e12cc5dd83
commit
8d88ef70fd
12 changed files with 25 additions and 80 deletions
|
|
@ -40,7 +40,7 @@ namespace Server.Engines.PartySystem
|
|||
from.SendLocalizedMessage(1005455); // Who would you like to remove from your party?
|
||||
from.Target = new RemovePartyTarget();
|
||||
}
|
||||
else if ((p.Leader == from || from == target) && p.Contains(target))
|
||||
else if (p.Leader == from || from == target)
|
||||
{
|
||||
p.Remove(target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue