Adds better type support for pooled enumerables. Refactors code. (#16)
This commit is contained in:
parent
62b95f4d74
commit
b06f5bf60d
48 changed files with 252 additions and 243 deletions
|
|
@ -133,12 +133,11 @@ namespace Server.Items
|
|||
else if ( RootParent == null )
|
||||
{
|
||||
List<Mobile> toDamage = new List<Mobile>();
|
||||
IPooledEnumerable eable = Map.GetMobilesInRange( Location, 1 );
|
||||
IPooledEnumerable<Mobile> eable = Map.GetMobilesInRange( Location, 1 );
|
||||
|
||||
foreach ( Mobile m in eable )
|
||||
{
|
||||
toDamage.Add( m );
|
||||
}
|
||||
|
||||
eable.Free();
|
||||
|
||||
Mobile victim;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue