This commit is contained in:
mark 2009-06-28 03:34:19 +00:00
parent 49cc73f571
commit c63a5f13fa

View file

@ -108,21 +108,14 @@ namespace Server.Items
{ {
get get
{ {
int maxWeight; if ( Parent is Container && ((Container)Parent).MaxWeight == 0 )
if ( Parent is Container )
{ {
maxWeight = ((Container)Parent).MaxWeight; return 0;
if ( maxWeight > 0 )
maxWeight = Math.Max( maxWeight, DefaultMaxWeight );
} }
else else
{ {
maxWeight = DefaultMaxWeight; return DefaultMaxWeight;
} }
return maxWeight;
} }
} }