Fix: destroy instead of constructing (#169)

This commit is contained in:
S6066 2018-07-06 10:42:23 +02:00 committed by Jérôme Leclercq
parent e4b67019cb
commit aafb79f06c
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ namespace Nz
else if (count < m_size)
{
for (std::size_t i = count; i < m_size; ++i)
PlacementNew(&m_ptr[i]);
PlacementDestroy(&m_ptr[i]);
m_size = count;
}