Core/Utils: restored previous behaviour of RandomResize
(cherry picked from commit 8188511759c6613d33111ab59f4af3c441d01c8b)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user