diff --git a/STAT/AliTreePlayer.cxx b/STAT/AliTreePlayer.cxx index 2bcd536f730..c9da85fc4c0 100644 --- a/STAT/AliTreePlayer.cxx +++ b/STAT/AliTreePlayer.cxx @@ -1647,7 +1647,7 @@ void AliTreePlayer::MakeCacheTreeChunk(TTree * tree, TString varList, TString ou for (Int_t iEntry=firstEntry; iEntrySetEstimate(chunkSize); - if (chunkSize+iEntry>entriesAll) chunkSize=entriesAll-iEntry; // ROOT6 does not handle properly query above limt + if (chunkSize+iEntry>=entriesAll) chunkSize=entriesAll-iEntry; // ROOT6 does not handle properly query above limit Int_t entries = tree->Draw(varList.Data(), selection, "goffpara", chunkSize, iEntry); if (entries<=0) break; if (entries > estimate) {