diff --git a/src/lol/math/arraynd.h b/src/lol/math/arraynd.h index 5c5c78f5..033403c0 100644 --- a/src/lol/math/arraynd.h +++ b/src/lol/math/arraynd.h @@ -255,21 +255,16 @@ public: return super::operator[](pos); } - inline size_t ComputeTotalSize(vec_t sizes) - { - return m_sizes[0]; - } - /* Resize the array. * FIXME: data gets scrambled; should we care? */ inline void SetSize(vec_t sizes, element_t e = element_t()) { - this->Resize(ComputeTotalSize(sizes), e); + this->Resize(m_sizes[0], e); } inline vec_t GetSize() const { - return ComputeTotalSize(this->m_sizes); + return this->m_sizes; } public: