Correct page count in save browser

This commit is contained in:
jacksonmj 2014-12-22 01:31:43 +00:00
parent 3b09c4bdbc
commit 3ea2d8013d

View File

@ -64,7 +64,7 @@ public:
int GetPageCount()
{
if (!showOwn && !showFavourite && currentSort == "best" && lastQuery == "")
return max(1, (int)(ceil((resultCount+5)/20.0f))+1); //add one for front page (front page saves are repeated twice)
return max(1, (int)(ceil(resultCount/20.0f))+1); //add one for front page (front page saves are repeated twice)
else
return max(1, (int)(ceil(resultCount/20.0f)));
}