diff --git a/src/osgAnimation/Animation.cpp b/src/osgAnimation/Animation.cpp index cd1a4258e..1ffd1993c 100644 --- a/src/osgAnimation/Animation.cpp +++ b/src/osgAnimation/Animation.cpp @@ -126,7 +126,7 @@ bool Animation::update (double time, int priority) else { int tt = (int) (t / _duration); - t = fmod(t, (float)_duration); + t = fmod(t, _duration); if (tt%2) t = _duration - t; }