Core/Utils: restored previous behaviour of RandomResize

This commit is contained in:
ariel-
2017-06-05 03:29:02 -03:00
committed by Ovahlord
parent 97bfd3edc8
commit e4ba06c828

View File

@@ -114,12 +114,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);
}