container calculation: fix overflow computing ge price

This commit is contained in:
Adam
2019-11-01 10:14:44 -04:00
parent 3a00ecbc24
commit ec0858548f
2 changed files with 5 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ class ContainerCalculation
final long storePrice = itemManager.getItemComposition(id).getPrice();
final long alchPrice = (long) (storePrice * Constants.HIGH_ALCHEMY_MULTIPLIER);
alch += alchPrice * qty;
ge += itemManager.getItemPrice(id) * qty;
ge += (long) itemManager.getItemPrice(id) * qty;
break;
}