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();