diff --git a/scene/resources/animation.cpp b/scene/resources/animation.cpp index c8e374138302..f2cd2bc933a5 100644 --- a/scene/resources/animation.cpp +++ b/scene/resources/animation.cpp @@ -2782,7 +2782,7 @@ void Animation::_track_get_key_indices_in_range(const Vector &p_array, double p_indices->push_back(i); } } else { - for (int i = to; i >= to; i--) { + for (int i = to; i >= from; i--) { p_indices->push_back(i); } }