yeah. this might work better

This commit is contained in:
krrios 2007-09-08 07:40:57 +00:00
parent 7c85db34de
commit c718261654
2 changed files with 16 additions and 4 deletions

View file

@ -964,10 +964,13 @@ namespace Server.Network
Mobile from = state.Mobile;
Item item = from.Holding;
bool valid = ( item != null && item.HeldBy == from && item.Map == Map.Internal );
from.Holding = null;
if ( item == null || item.Deleted || item.HeldBy != from || item.Map != Map.Internal )
if ( !valid ) {
return;
}
pvSrc.Seek( 5, SeekOrigin.Current );
Mobile to = World.FindMobile( pvSrc.ReadInt32() );