diff --git a/libluna/include/luna/Vector.h b/libluna/include/luna/Vector.h index 65c73f19..c5ffda56 100644 --- a/libluna/include/luna/Vector.h +++ b/libluna/include/luna/Vector.h @@ -212,7 +212,7 @@ template class Vector { Vector other; TRY(other.try_reserve(m_capacity)); - memcpy(other.m_data, m_data, m_size); + memcpy(other.m_data, m_data, m_size * sizeof(T)); other.m_size = m_size; return other; }