From da6b28eb40c29de1d90e03c97b0c686e50f88e9d Mon Sep 17 00:00:00 2001 From: MiroslavR Date: Sat, 25 Mar 2017 15:20:37 +0100 Subject: [PATCH] Fix selling success chance (Fixes #3802) --- apps/openmw/mwmechanics/trading.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/trading.cpp b/apps/openmw/mwmechanics/trading.cpp index 08e4d097a..ede0d2de7 100644 --- a/apps/openmw/mwmechanics/trading.cpp +++ b/apps/openmw/mwmechanics/trading.cpp @@ -37,7 +37,7 @@ namespace MWMechanics int b = std::abs(playerOffer); int d = (buying) ? int(100 * (a - b) / a) - : int(100 * (b - a) / a); + : int(100 * (b - a) / b); int clampedDisposition = MWBase::Environment::get().getMechanicsManager()->getDerivedDisposition(merchant);