From 0ee73d89f0709052e5d5bee301ce0df12deedc63 Mon Sep 17 00:00:00 2001 From: Alexei Dobrohotov <21265616+Capostrophic@users.noreply.github.com> Date: Sun, 19 May 2019 23:43:40 +0300 Subject: [PATCH] Correct selling prices of creature merchants --- 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 88e5be365d..31f70af005 100644 --- a/apps/openmw/mwgui/tradewindow.cpp +++ b/apps/openmw/mwgui/tradewindow.cpp @@ -484,7 +484,7 @@ namespace MWGui const int basePrice = getEffectiveValue(itemStack.mBase, itemStack.mCount); 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); + merchantOffer += mPtr.getClass().isNpc() ? std::min(cap, sellingPrice) : sellingPrice; } int diff = merchantOffer - mCurrentMerchantOffer;