Core/StackVector: Fix resize check

This commit is contained in:
Lynix 2019-09-28 17:36:19 +02:00
parent 89243a39b5
commit 5fce345b3e
1 changed files with 2 additions and 2 deletions

View File

@ -249,7 +249,7 @@ namespace Nz
template<typename T>
void StackVector<T>::resize(size_type count)
{
assert(count < m_capacity);
assert(count <= m_capacity);
if (count > m_size)
{
for (std::size_t i = m_size; i < count; ++i)
@ -269,7 +269,7 @@ namespace Nz
template<typename T>
void StackVector<T>::resize(size_type count, const value_type& value)
{
assert(count < m_capacity);
assert(count <= m_capacity);
if (count > m_size)
{
for (std::size_t i = m_size; i < count; ++i)