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

@ -4392,10 +4392,13 @@ namespace Server
Mobile from = this;
Item item = from.Holding;
bool valid = ( item != null && item.HeldBy == from && item.Map == Map.Internal );
from.Holding = null;
if ( item == null || item.HeldBy != from || item.Map != Map.Internal )
if ( !valid ) {
return false;
}
bool bounced = true;
@ -4419,10 +4422,13 @@ namespace Server
Mobile from = this;
Item item = from.Holding;
bool valid = ( item != null && item.HeldBy == from && item.Map == Map.Internal );
from.Holding = null;
if ( item == null || item.HeldBy != from || item.Map != Map.Internal )
if ( !valid ) {
return false;
}
bool bounced = true;
@ -4446,10 +4452,13 @@ namespace Server
Mobile from = this;
Item item = from.Holding;
bool valid = ( item != null && item.HeldBy == from && item.Map == Map.Internal );
from.Holding = null;
if ( item == null || item.HeldBy != from || item.Map != Map.Internal )
if ( !valid ) {
return false;
}
bool bounced = true;

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() );