From e5579e7570cdbcccacb206cbbba2e7c41d390946 Mon Sep 17 00:00:00 2001 From: Anton Kholetsky Date: Thu, 22 Oct 2020 11:03:22 +0300 Subject: [PATCH] Fixed lost capacity and incorrect method name --- public/blah/containers/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/blah/containers/list.h b/public/blah/containers/list.h index ea0c03f..4d4b053 100644 --- a/public/blah/containers/list.h +++ b/public/blah/containers/list.h @@ -99,8 +99,8 @@ namespace Blah List::List(int capacity) { m_buffer = nullptr; - m_count = m_capacity = 0; - Reserve(m_capacity); + m_count = m_capacity = capacity; + reserve(m_capacity); } template