       else
         name = nameOrFrame
         return if @animation?.name is name
-        animation = @animations.play name
-        @animation = animation
+        @animation = @animations.play name
 
       @debug 'animation', nameOrFrame
 


    _updateAnimations: ->
      unless @isInMidAir() or @nextAction is 'none'
        return if @nextAction is 'stop' and @animations.frame is 17 # Patch.
        @_changeAnimation @nextAction, @animation?.loop
        return


      @acceleration.x = @runAcceleration * direction

    _turn: (direction) ->
      if @_isTurning and @animation?.isFinished
        @nextAction = 'start'
        @_isTurning = no
