Fixing cast problems as well Remove for Generics it should be RemoveAt.
This commit is contained in:
parent
f2abcd8dfc
commit
26eb53f2b5
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue