Change for latest version to build against TF2:
Code:
257,259c257
< for ( int i = 0; i < g_BatchDeadlines.Count(); i++ ) {
< g_BatchDeadlines[i] = 0;
< }
---
> g_BatchDeadlines.FillWithValue(0);
Which is just the same code provided by that function.
Or like this, but I dunno if there's a cleaner way to do this without inheriting:
Code:
template< class T, class A = CUtlMemory<T> >
class CUtlVectorExt : public CUtlVector<T, A>
{
public:
void FillWithValue( const T& src );
};
template< typename T, class A >
void CUtlVectorExt<T, A>::FillWithValue( const T& src )
{
for ( int i = 0; i < this->Count(); i++ )
{
this->Element(i) = src;
}
}