From 059a4b9465a8b7d2129eedd3d28a4df4975035a8 Mon Sep 17 00:00:00 2001 From: Daviw Williams Date: Fri, 28 Jun 2013 16:58:31 +0200 Subject: [PATCH] Reverted accidental commit of test code. --- library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl index ab6f4b46..19b7d114 100644 --- a/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl +++ b/library/PolyVoxCore/include/PolyVoxCore/LargeVolume.inl @@ -619,9 +619,7 @@ namespace PolyVox // create the new block Block newBlock(m_uBlockSideLength, m_pCompressor); - auto retVal = m_pBlocks.insert(std::make_pair(v3dBlockPos, newBlock)); - itBlock = retVal.first; - POLYVOX_ASSERT(retVal.second == true, "Element was not supposed to exist!"); + itBlock = m_pBlocks.insert(std::make_pair(v3dBlockPos, newBlock)).first; //We have created the new block. If paging is enabled it should be used to //fill in the required data. Otherwise it is just left in the default state.