1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 12:20: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
{
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();