From edf8c3b81c2b64648388687cfccb997631b631ca Mon Sep 17 00:00:00 2001 From: Mads Buvik Sandvei Date: Sun, 3 Dec 2023 17:53:40 +0100 Subject: [PATCH] mSteps should be an int. --- apps/openmw/mwphysics/mtphysics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwphysics/mtphysics.cpp b/apps/openmw/mwphysics/mtphysics.cpp index 5df9a5c7a9..09eb309593 100644 --- a/apps/openmw/mwphysics/mtphysics.cpp +++ b/apps/openmw/mwphysics/mtphysics.cpp @@ -199,7 +199,7 @@ namespace struct InitMovement { - float mSteps = 1.f; + int mSteps = 0; float mDelta = 0.f; float mSimulationTime = 0.f; @@ -224,7 +224,7 @@ namespace void operator()(auto& sim) const { - if (mSteps == 0 || mDelta < 0.00001f) + if (mSteps <= 0 || mDelta < 0.00001f) return; auto locked = sim.lock();