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:
Lee Salzman
2008-04-08 14:23:56 +00:00
parent b7ba3bfe3d
commit 91020bd809
+5
View File
@@ -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)