Fix: destroy instead of constructing (#169)
This commit is contained in:
parent
e4b67019cb
commit
aafb79f06c
|
|
@ -255,7 +255,7 @@ namespace Nz
|
||||||
else if (count < m_size)
|
else if (count < m_size)
|
||||||
{
|
{
|
||||||
for (std::size_t i = count; i < m_size; ++i)
|
for (std::size_t i = count; i < m_size; ++i)
|
||||||
PlacementNew(&m_ptr[i]);
|
PlacementDestroy(&m_ptr[i]);
|
||||||
|
|
||||||
m_size = count;
|
m_size = count;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue