copy constructor fix
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1757 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -196,6 +196,11 @@ template <class T> struct vector
|
||||
{
|
||||
}
|
||||
|
||||
vector(const vector &v) : buf(NULL), alen(0), ulen(0)
|
||||
{
|
||||
*this = v;
|
||||
}
|
||||
|
||||
~vector() { setsize(0); if(buf) delete[] (uchar *)buf; }
|
||||
|
||||
vector<T> &operator=(const vector<T> &v)
|
||||
|
||||
Reference in New Issue
Block a user