fix bug with reward amounts

This commit is contained in:
Shaun Bennett 2014-09-13 23:07:15 -05:00
parent 1e7ed8d491
commit 228cca4805

View File

@ -45,7 +45,7 @@ public class InventoryReward extends AbstractReward
{
int amountToGive;
if (_minAmount > _maxAmount)
if (_minAmount != _maxAmount)
{
amountToGive = _random.nextInt(_maxAmount - _minAmount) + _minAmount;
}