1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2024-11-29 11:24:19 +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)
{
};
THashNode & operator =(const THashNode &other)
{
key = other.key;
val = other.val;
}
K key;
V val;
};

View File

@ -274,6 +274,15 @@ public:
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
size_t size() const
{