diff --git a/ex02/src/Array.hpp b/ex02/src/Array.hpp index 58f1b7b..6fcb2f8 100644 --- a/ex02/src/Array.hpp +++ b/ex02/src/Array.hpp @@ -39,7 +39,7 @@ class Array return *this; delete[] this->_arr; this->_size = src._size; - new T[src._size]; + this->_arr = new T[src._size]; for (size_t i = 0; i < src._size; i++) this->_arr[i] = src._arr[i]; return *this;