Core/Utils: restored previous behaviour of RandomResize

This commit is contained in:
ariel- authored and Ovahlord committed 2020-07-24 10:31:01 +02:00
1 parent 97bfd3edc8
commit e4ba06c828
1 file changed
+1 -3
+1 -3
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);
}