Fixing cast problems as well Remove for Generics it should be RemoveAt.

This commit is contained in:
ravenal 2009-10-22 16:37:37 +00:00
parent f2abcd8dfc
commit 26eb53f2b5

View file

@ -226,7 +226,7 @@ namespace Server.Items
if ( !book.Deleted && (book.Parent == from || (pack != null && book.Parent == pack)) && ValidateSpellbook( book, spellID, type ) )
return book;
list.Remove( i );
list.RemoveAt( i );
}
return null;
@ -239,7 +239,7 @@ namespace Server.Items
Item item = from.FindItemOnLayer( Layer.OneHanded );
if ( item is Spellbook )
list.Add( item );
list.Add( (Spellbook)item );
Container pack = from.Backpack;
@ -251,7 +251,7 @@ namespace Server.Items
item = pack.Items[i];
if ( item is Spellbook )
list.Add( item );
list.Add( (Spellbook)item );
}
return list;