From fbb3f0537c1e81cf81803cc83e76ff44e990f03d Mon Sep 17 00:00:00 2001 From: David Williams Date: Mon, 22 Nov 2010 23:42:45 +0000 Subject: [PATCH] Fixed bug with 'empty()' being called rather than 'clear()'. --- library/PolyVoxCore/include/Volume.inl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/library/PolyVoxCore/include/Volume.inl b/library/PolyVoxCore/include/Volume.inl index 2e390c70..7a0aea34 100644 --- a/library/PolyVoxCore/include/Volume.inl +++ b/library/PolyVoxCore/include/Volume.inl @@ -322,10 +322,10 @@ namespace PolyVox throw std::invalid_argument("Block side length cannot be greater than volume depth."); } - //Empty the previous data - m_pBlocks.empty(); - m_vecBlockIsPotentiallyHomogenous.empty(); - m_pHomogenousBlock.empty(); + //Clear the previous data + m_pBlocks.clear(); + m_vecBlockIsPotentiallyHomogenous.clear(); + m_pHomogenousBlock.clear(); //Compute the volume side lengths m_uWidth = uWidth;