From 4386cbac995784c3fab5e4fc61e0db9b75c39612 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 28 Aug 2006 20:52:13 +0000 Subject: [PATCH] math.max -> math.min for determining max weight in nested containers, thanks volturno --- Server/Items/Container.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Items/Container.cs b/Server/Items/Container.cs index 63b011e85..7d3311ddd 100644 --- a/Server/Items/Container.cs +++ b/Server/Items/Container.cs @@ -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 {