More cast conversion fixes
This commit is contained in:
parent
3f45bd57b9
commit
aba9452161
46 changed files with 359 additions and 506 deletions
|
|
@ -199,8 +199,8 @@ namespace Server.Items
|
|||
return;
|
||||
|
||||
IPoint3D loc;
|
||||
if ( targeted is Item )
|
||||
loc = ((Item)targeted).GetWorldLocation();
|
||||
if ( targeted is Item item )
|
||||
loc = item.GetWorldLocation();
|
||||
else
|
||||
loc = targeted as IPoint3D;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue