diff --git a/components/nifogre/controller.hpp b/components/nifogre/controller.hpp index aa60482e3c..cc750ea65e 100644 --- a/components/nifogre/controller.hpp +++ b/components/nifogre/controller.hpp @@ -89,6 +89,9 @@ namespace NifOgre { if(mDeltaInput) { + if (mStopTime - mStartTime == 0.f) + return 0.f; + mDeltaCount += value*mFrequency; if(mDeltaCount < mStartTime) mDeltaCount = mStopTime - std::fmod(mStartTime - mDeltaCount,