diff --git a/Scripts/Items/Addons/BaseAddon.cs b/Scripts/Items/Addons/BaseAddon.cs index 9e5f1e589..e7086e993 100644 --- a/Scripts/Items/Addons/BaseAddon.cs +++ b/Scripts/Items/Addons/BaseAddon.cs @@ -65,7 +65,7 @@ namespace Server.Items { for ( int i = 0; hue == 0 && i < m_Components.Count; ++i ) { - AddonComponent c = (AddonComponent)m_Components[i]; + AddonComponent c = m_Components[i]; if ( c.Hue != 0 ) hue = c.Hue; @@ -109,17 +109,17 @@ namespace Server.Items public bool CouldFit( IPoint3D p, Map map ) { - ArrayList houses = null; + List houses = null; return ( CouldFit( p, map, null, ref houses ) == AddonFitResult.Valid ); } - public AddonFitResult CouldFit( IPoint3D p, Map map, Mobile from, ref ArrayList houseList ) + public AddonFitResult CouldFit( IPoint3D p, Map map, Mobile from, ref List houseList ) { if ( Deleted ) return AddonFitResult.Blocked; - ArrayList houses = new ArrayList(); + List houses = new List(); foreach ( AddonComponent c in m_Components ) { @@ -168,7 +168,7 @@ namespace Server.Items return AddonFitResult.Valid; } - public static bool CheckHouse( Mobile from, Point3D p, Map map, int height, ArrayList list ) + public static bool CheckHouse( Mobile from, Point3D p, Map map, int height, List list ) { if ( from == null || from.AccessLevel >= AccessLevel.GameMaster ) return true; diff --git a/Scripts/Items/Addons/BaseAddonDeed.cs b/Scripts/Items/Addons/BaseAddonDeed.cs index 14ec46fc3..96823de0f 100644 --- a/Scripts/Items/Addons/BaseAddonDeed.cs +++ b/Scripts/Items/Addons/BaseAddonDeed.cs @@ -1,5 +1,5 @@ using System; -using System.Collections; +using System.Collections.Generic; using Server; using Server.Targeting; @@ -72,7 +72,7 @@ namespace Server.Items Server.Spells.SpellHelper.GetSurfaceTop( ref p ); - ArrayList houses = null; + List houses = null; AddonFitResult res = addon.CouldFit( p, map, from, ref houses );