From 26eb53f2b58f4da60c16e73539e5977280834ace Mon Sep 17 00:00:00 2001 From: ravenal Date: Thu, 22 Oct 2009 16:37:37 +0000 Subject: [PATCH] Fixing cast problems as well Remove for Generics it should be RemoveAt. --- Scripts/Items/Skill Items/Magical/Spellbook.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Scripts/Items/Skill Items/Magical/Spellbook.cs b/Scripts/Items/Skill Items/Magical/Spellbook.cs index 89aff89ef..53a795f6e 100644 --- a/Scripts/Items/Skill Items/Magical/Spellbook.cs +++ b/Scripts/Items/Skill Items/Magical/Spellbook.cs @@ -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;