From d37cb871d622b83e6a69ed611f82cbf8528c66bb Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov <21265616+Capostrophic@users.noreply.github.com> Date: Mon, 13 May 2019 09:50:32 +0300 Subject: [PATCH] Fix last-minute typo --- apps/openmw/mwgui/tradewindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwgui/tradewindow.cpp b/apps/openmw/mwgui/tradewindow.cpp index 15a43d55fa..f2742d17d8 100644 --- a/apps/openmw/mwgui/tradewindow.cpp +++ b/apps/openmw/mwgui/tradewindow.cpp @@ -485,7 +485,7 @@ namespace MWGui for (const ItemStack& itemStack : merchantBorrowed) { const int basePrice = getEffectiveValue(itemStack.mBase, itemStack.mCount); - const int cap = static_cast(std::min(1.f, 0.75f * basePrice)); // Maximum selling price -- 75% of the base + const int cap = static_cast(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); merchantOffer += std::min(cap, sellingPrice); }