From db474d01099d0b22e6238e9584e3f6d269345939 Mon Sep 17 00:00:00 2001 From: mark Date: Sun, 21 Nov 2010 06:15:59 +0000 Subject: [PATCH] fix collection modification --- Scripts/Mobiles/PlayerMobile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scripts/Mobiles/PlayerMobile.cs b/Scripts/Mobiles/PlayerMobile.cs index 6b37f9f37..e77ada419 100644 --- a/Scripts/Mobiles/PlayerMobile.cs +++ b/Scripts/Mobiles/PlayerMobile.cs @@ -4266,8 +4266,8 @@ namespace Server.Mobiles { if (pet.Map != Map) { - pet.PlaySound(pet.GetAngerSound()); - pet.Delete(); + pet.PlaySound( pet.GetAngerSound() ); + Timer.DelayCall( TimeSpan.Zero, new TimerCallback( pet.Delete() ) ); } continue; }