Fixes more casting
This commit is contained in:
parent
aba9452161
commit
74f498c1c8
17 changed files with 581 additions and 805 deletions
|
|
@ -76,13 +76,13 @@ namespace Server.ContextMenus
|
|||
|
||||
List<ContextMenuEntry> list = new List<ContextMenuEntry>();
|
||||
|
||||
if ( target is Mobile )
|
||||
if ( target is Mobile mobile )
|
||||
{
|
||||
((Mobile)target).GetContextMenuEntries( from, list );
|
||||
mobile.GetContextMenuEntries( from, list );
|
||||
}
|
||||
else if ( target is Item )
|
||||
else if ( target is Item item )
|
||||
{
|
||||
((Item)target).GetContextMenuEntries( from, list );
|
||||
item.GetContextMenuEntries( from, list );
|
||||
}
|
||||
|
||||
//m_Entries = (ContextMenuEntry[])list.ToArray( typeof( ContextMenuEntry ) );
|
||||
|
|
@ -112,4 +112,4 @@ namespace Server.ContextMenus
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue