Adds better type support for pooled enumerables. Refactors code. (#16)

This commit is contained in:
Kamron Batman 2018-08-09 14:08:34 -07:00 committed by GitHub
parent 62b95f4d74
commit b06f5bf60d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 252 additions and 243 deletions

View file

@ -5450,12 +5450,12 @@ namespace Server.Mobiles
{
Corpse toRummage = null;
IPooledEnumerable eable = this.GetItemsInRange(2);
foreach ( Item item in eable )
IPooledEnumerable<Corpse> eable = this.GetItemsInRange<Corpse>(2);
foreach ( Corpse item in eable )
{
if ( item is Corpse && item.Items.Count > 0 )
if ( item.Items.Count > 0 )
{
toRummage = (Corpse)item;
toRummage = item;
break;
}
}