From 99bfe024ef2f7503be21089b7827d520639f497f Mon Sep 17 00:00:00 2001 From: Evil Eye Date: Sun, 5 Dec 2021 18:36:35 +0100 Subject: [PATCH] Cap temp disposition change properly --- apps/openmw/mwmechanics/mechanicsmanagerimp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp index f1101d2566..e450e76483 100644 --- a/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp +++ b/apps/openmw/mwmechanics/mechanicsmanagerimp.cpp @@ -718,7 +718,7 @@ namespace MWMechanics if (currentDisposition + tempChange < 0) { cappedDispositionChange = -currentDisposition; - tempChange = 0; + tempChange = cappedDispositionChange; } permChange = floor(cappedDispositionChange / fPerTempMult);