Browse Source

Fixed math bug, thanks DrHouse

_DS_ 15 years ago
parent
commit
be01ee8e92
1 changed files with 1 additions and 1 deletions
  1. 1 1
      L2_GameServer/java/com/l2jserver/gameserver/model/TradeList.java

+ 1 - 1
L2_GameServer/java/com/l2jserver/gameserver/model/TradeList.java

@@ -648,7 +648,7 @@ public class TradeList
 			weight += item.getCount() * template.getWeight();
 		}
 
-		return Math.min((int)weight, Integer.MAX_VALUE);
+		return (int)Math.min(weight, Integer.MAX_VALUE);
 	}
 
 	/**