1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

mSteps should be an int.

This commit is contained in:
Mads Buvik Sandvei 2023-12-03 17:53:40 +01:00
parent 3683f24b28
commit edf8c3b81c

View File

@ -199,7 +199,7 @@ namespace
struct InitMovement struct InitMovement
{ {
float mSteps = 1.f; int mSteps = 0;
float mDelta = 0.f; float mDelta = 0.f;
float mSimulationTime = 0.f; float mSimulationTime = 0.f;
@ -224,7 +224,7 @@ namespace
void operator()(auto& sim) const void operator()(auto& sim) const
{ {
if (mSteps == 0 || mDelta < 0.00001f) if (mSteps <= 0 || mDelta < 0.00001f)
return; return;
auto locked = sim.lock(); auto locked = sim.lock();