diff --git a/source/DrawComponent.cpp b/source/DrawComponent.cpp index be94cb6..0be0ce5 100644 --- a/source/DrawComponent.cpp +++ b/source/DrawComponent.cpp @@ -220,8 +220,7 @@ void DrawComponent::drawAt(int x, int y, bool setColor) void DrawComponent::clear() { - m_data.resize(m_width*m_height); - m_data = arma::zeros(m_width*m_height); + m_data = arma::zeros(1, m_width*m_height); DrawData(); }