浏览代码

Fixed math bug, thanks DrHouse

_DS_ 15 年之前
父节点
当前提交
be01ee8e92
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);
 	}
 
 	/**