math.max -> math.min for determining max weight in nested containers, thanks volturno

This commit is contained in:
mark 2006-08-28 20:52:13 +00:00
parent b9a6e8acfe
commit 4386cbac99

View file

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