reverted commit 81

fixed updatetotal on held items
This commit is contained in:
mark 2006-10-26 04:04:41 +00:00
parent 87966abb3f
commit b2ab540a59
2 changed files with 3 additions and 1 deletions

View file

@ -2616,6 +2616,8 @@ namespace Server
( m_Parent as Item ).UpdateTotal( sender, type, delta );
else if ( m_Parent is Mobile )
( m_Parent as Mobile ).UpdateTotal( sender, type, delta );
else if ( this.HeldBy != null )
( this.HeldBy as Mobile ).UpdateTotal( sender, type, delta );
}
}

View file

@ -115,7 +115,7 @@ namespace Server.Items
maxWeight = ((Container)Parent).MaxWeight;
if ( maxWeight > 0 )
maxWeight = Math.Min( maxWeight, DefaultMaxWeight );
maxWeight = Math.Max( maxWeight, DefaultMaxWeight );
}
else
{