Core/Misc: Misc cleanups and changing of fields
This commit is contained in:
@@ -711,7 +711,7 @@ namespace Game.AI
|
||||
|
||||
public void RemoveNotExisting()
|
||||
{
|
||||
foreach (var id in this.ToList())
|
||||
foreach (var id in this)
|
||||
{
|
||||
if (!ObjectAccessor.GetCreature(me, id))
|
||||
Remove(id);
|
||||
|
||||
@@ -3832,7 +3832,7 @@ namespace Game.AI
|
||||
if (mTimedActionList.Empty())
|
||||
return;
|
||||
int i = 0;
|
||||
foreach (var holder in mTimedActionList)
|
||||
foreach (var holder in mTimedActionList.ToList())
|
||||
{
|
||||
if (i++ == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user