1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-12-01 13:24:25 +01:00

Fixed vector copy error

--HG--
extra : convert_revision : svn%3Ac2935e3e-5518-0410-8daf-afa5dab7d4e3/trunk%40155
This commit is contained in:
David Anderson 2005-12-06 09:10:42 +00:00
parent e44ecb812c
commit 151fb309c6
2 changed files with 14 additions and 0 deletions

View File

@ -37,6 +37,11 @@ namespace SourceHook
key(k), val(v) key(k), val(v)
{ {
}; };
THashNode & operator =(const THashNode &other)
{
key = other.key;
val = other.val;
}
K key; K key;
V val; V val;
}; };

View File

@ -274,6 +274,15 @@ public:
clear(); clear();
} }
CVector & operator =(const CVector<T> & other)
{
clear();
resize(other.size());
for (size_t i=0; i<other.size(); i++)
m_Data[i] = other.at(i);
return *this;
}
// interface // interface
size_t size() const size_t size() const
{ {