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:
parent
e44ecb812c
commit
151fb309c6
@ -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;
|
||||||
};
|
};
|
||||||
|
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user