mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-12 05:27:04 +03:00
Fix last-minute typo
This commit is contained in:
parent
8920b34b75
commit
d37cb871d6
1 changed files with 1 additions and 1 deletions
|
@ -485,7 +485,7 @@ namespace MWGui
|
||||||
for (const ItemStack& itemStack : merchantBorrowed)
|
for (const ItemStack& itemStack : merchantBorrowed)
|
||||||
{
|
{
|
||||||
const int basePrice = getEffectiveValue(itemStack.mBase, itemStack.mCount);
|
const int basePrice = getEffectiveValue(itemStack.mBase, itemStack.mCount);
|
||||||
const int cap = static_cast<int>(std::min(1.f, 0.75f * basePrice)); // Maximum selling price -- 75% of the base
|
const int cap = static_cast<int>(std::max(1.f, 0.75f * basePrice)); // Maximum selling price -- 75% of the base
|
||||||
const int sellingPrice = MWBase::Environment::get().getMechanicsManager()->getBarterOffer(mPtr, basePrice, false);
|
const int sellingPrice = MWBase::Environment::get().getMechanicsManager()->getBarterOffer(mPtr, basePrice, false);
|
||||||
merchantOffer += std::min(cap, sellingPrice);
|
merchantOffer += std::min(cap, sellingPrice);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue