From 83720038af73ea347309c77b4f40c551a671e3cc Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 10 Apr 2014 21:24:55 +0000 Subject: [PATCH] Added copy constructor to array. --- common/lc_array.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/lc_array.h b/common/lc_array.h index fa8e510a..6f8a01e5 100644 --- a/common/lc_array.h +++ b/common/lc_array.h @@ -18,6 +18,12 @@ public: AllocGrow(Size); } + lcArray(const lcArray& Array) + { + mData = NULL; + *this = Array; + } + ~lcArray() { delete[] mData;