Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic
diff options
context:
space:
mode:
1 files changed, 1 insertions, 2 deletions
-rw-r--r--src/Generic/List/List.hpp3
diff --git a/src/Generic/List/List.hpp b/src/Generic/List/List.hpp
index f1919b3..c6fd8a1 100644
--- a/src/Generic/List/List.hpp
+++ b/src/Generic/List/List.hpp
@@ -116,8 +116,7 @@ List<T>::List(const T* elements, unsigned elementsCount) {
template <typename T>
List<T>::List(unsigned length) {
- this->length = length;
- count = 0;
+ this->length = count = length;
this->elements = new T[length];
for (unsigned i = 0; i < count; i++)
this->elements[i] = elements[i];