Core/Utils: restored previous behaviour of RandomResize

(cherry picked from commit 8188511759)
This commit is contained in:
ariel-
2017-06-05 03:29:02 -03:00
parent 61231f7e12
commit 555fc9d3d5

View File

@@ -71,12 +71,10 @@ namespace Trinity
{
//! First use predicate filter
C containerCopy;
std::copy_if(std::begin(container), std::end(container), std::inserter(containerCopy, std::end(containerCopy)), predicate);
if (requestedSize)
{
std::copy_if(std::begin(container), std::end(container), std::inserter(containerCopy, std::end(containerCopy)), predicate);
RandomResize(containerCopy, requestedSize);
}
container = std::move(containerCopy);
}