From 6ec1122f842ed31d7283c9ab1b9849976a4ffec3 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Mon, 14 Jan 2013 21:26:08 +0000 Subject: [PATCH] -fixed a small coverflow cover loading bug --- source/gui/coverflow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gui/coverflow.cpp b/source/gui/coverflow.cpp index cb83901b..fb3a7aef 100644 --- a/source/gui/coverflow.cpp +++ b/source/gui/coverflow.cpp @@ -2838,7 +2838,7 @@ int CCoverFlow::_coverLoader(CCoverFlow *cf) nextItem = cf->m_covers[cf->m_range / 2].index; int diff = nextItem - firstItem; if(diff < 0) diff *= (-1); - for(u32 j = bufferSize - diff; j < bufferSize && cf->m_loadingCovers && update; ++j) + for(u32 j = bufferSize - diff; j <= bufferSize && cf->m_loadingCovers && update; ++j) { i = loopNum((j & 1) ? firstItem - (j + 1) / 2 : firstItem + j / 2, cf->m_items.size()); TexHandle.Cleanup(cf->m_items[i].texture);