diff --git a/server/TracyVector.hpp b/server/TracyVector.hpp index 61f2f05e..d8bac44c 100644 --- a/server/TracyVector.hpp +++ b/server/TracyVector.hpp @@ -176,7 +176,7 @@ public: assert( m_capacity != std::numeric_limits::max() ); assert( it >= m_ptr && it <= m_ptr + m_size ); m_size--; - memmove( it, it+1, m_size * sizeof( T ) ); + memmove( it, it+1, ( m_size - ( it - m_ptr ) ) * sizeof( T ) ); return it; }