Nopch fix 2
This commit is contained in:
1 parent
6ea79fd691
commit
db5a6d2738
1 file changed
-1
@@ -132,7 +132,6 @@ namespace Trinity
|
||||
template<class C>
|
||||
inline auto SelectRandomContainerElement(C const& container) -> typename std::add_const<decltype(*std::begin(container))>::type&
|
||||
{
|
||||
ASSERT(Size(container));
|
||||
auto it = std::begin(container);
|
||||
std::advance(it, urand(0, uint32(Size(container)) - 1));
|
||||
return *it;
|
||||
|
||||
Reference in new issue
Block a user