diff --git a/libluna/include/luna/Vector.h b/libluna/include/luna/Vector.h index 4de73e11..51d1070d 100644 --- a/libluna/include/luna/Vector.h +++ b/libluna/include/luna/Vector.h @@ -106,13 +106,13 @@ template class Vector const T& operator[](usize index) const { check(index < m_size); - return m_data[m_size]; + return m_data[index]; } T& operator[](usize index) { check(index < m_size); - return m_data[m_size]; + return m_data[index]; } Iterator begin()