SerialFixedArrayList constructor bugfix

This commit is contained in:
Robin Müller 2020-01-27 00:43:01 +01:00
parent 85048cc9ee
commit 8f17d5147e
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ public:
//is this feasible?
FixedArrayList(T * data_, count_t count, bool swapArrayListEndianess = false):
ArrayList<T, count_t>(data, MAX_SIZE) {
memcpy(this->data, data_, count);
memcpy(this->data, data_, count * sizeof(T));
this->size = count;
if(swapArrayListEndianess) {
ArrayList<T, count_t>::swapArrayListEndianness();