Przeglądaj źródła

Fixed math bug, thanks DrHouse

_DS_ 15 lat temu
rodzic
commit
be01ee8e92

+ 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);
 	}
 
 	/**