From ac037c764db1bb25ac87b80619bba7cfc2054ab7 Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Mon, 2 Jan 2017 11:12:24 +0100 Subject: [PATCH] Fixed menu item animation allocation. --- RetroFE/Source/Graphics/Component/ScrollingList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetroFE/Source/Graphics/Component/ScrollingList.cpp b/RetroFE/Source/Graphics/Component/ScrollingList.cpp index 1cbbff1..32100b1 100644 --- a/RetroFE/Source/Graphics/Component/ScrollingList.cpp +++ b/RetroFE/Source/Graphics/Component/ScrollingList.cpp @@ -665,7 +665,7 @@ void ScrollingList::scroll(bool forward) ViewInfo *currentvi = scrollPoints_->at(i); ViewInfo *nextvi = scrollPoints_->at(nextI); - resetTweens(c, tweenPoints_->at(i), currentvi, nextvi, scrollPeriod_); + resetTweens(c, tweenPoints_->at(loopDecrement(i, 1, components_.size())), currentvi, nextvi, scrollPeriod_); c->baseViewInfo.font = nextvi->font; // Use the font settings of the next index c->triggerEvent( "menuScroll" ); }