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:
parent
3683f24b28
commit
edf8c3b81c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user