Core/Utils: restored previous behaviour of RandomResize
This commit is contained in:
1 parent
97bfd3edc8
commit
e4ba06c828
1 file changed
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user