yeah. this might work better
This commit is contained in:
parent
7c85db34de
commit
c718261654
2 changed files with 16 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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() );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue