Core/Misc: Fix gcc build

This commit is contained in:
Shocker
2011-09-15 21:44:50 +03:00
parent 7afb179185
commit 74616464f2

View File

@@ -652,7 +652,7 @@ public:
/* Select a random element from a container. Note: make sure you explicitly empty check the container */
template <class C> typename C::value_type const& SelectRandomContainerElement(C const& container)
{
C::const_iterator it = container.begin();
typename C::const_iterator it = container.begin();
std::advance(it, urand(0, container.size() - 1));
return *it;
}