Core/ByteArray: Make constructor taking a size set the size instead of capacity

This commit is contained in:
SirLynix
2024-02-24 20:38:34 +01:00
parent edac2e4af5
commit 7b0165a7df
2 changed files with 6 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ namespace Nz
inline ByteArray::ByteArray(size_type n) :
m_array()
{
m_array.reserve(n);
m_array.resize(n);
}
/*!