Mike3D 11 years ago
parent
commit
7014e466c5
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/Urho3D/Urho2D/AnimatedSprite2D.cpp

+ 3 - 3
Source/Urho3D/Urho2D/AnimatedSprite2D.cpp

@@ -358,16 +358,16 @@ void AnimatedSprite2D::UpdateAnimation(float timeStep)
     currentTime_ += timeStep * speed_;
     currentTime_ += timeStep * speed_;
 
 
     float time;
     float time;
-    float animtationLength = animation_->GetLength();
+    float animationLength = animation_->GetLength();
 
 
     if (looped_)
     if (looped_)
     {
     {
-        time = fmodf(currentTime_, animtationLength);
+        time = fmodf(currentTime_, animationLength);
         if (time < 0.0f)
         if (time < 0.0f)
             time += animation_->GetLength();
             time += animation_->GetLength();
     }
     }
     else
     else
-        time = Clamp(currentTime_, 0.0f, animtationLength);
+        time = Clamp(currentTime_, 0.0f, animationLength);
 
 
     for (unsigned i = 0; i < numTracks_; ++i)
     for (unsigned i = 0; i < numTracks_; ++i)
     {
     {