Nopch fix 2

This commit is contained in:
Shauren authored and Ovahlord committed 2020-07-22 13:46:16 +02:00
1 parent 6ea79fd691
commit db5a6d2738
1 file changed
-1
-1
View File
@@ -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;