From 8757f1e53ef47515d00e00d8680386ce411a67c7 Mon Sep 17 00:00:00 2001 From: David Williams Date: Mon, 13 Apr 2015 21:17:19 +0200 Subject: [PATCH] Removed unneeded assert. --- include/PolyVox/PagedVolume.inl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/include/PolyVox/PagedVolume.inl b/include/PolyVox/PagedVolume.inl index 7a0a1483..edeb6f0f 100644 --- a/include/PolyVox/PagedVolume.inl +++ b/include/PolyVox/PagedVolume.inl @@ -295,6 +295,7 @@ namespace PolyVox if (entryPos.getX() == uChunkX && entryPos.getY() == uChunkY && entryPos.getZ() == uChunkZ) { pChunk = m_arrayChunks[iIndex].get(); + pChunk->m_uChunkLastAccessed = ++m_uTimestamper; break; } } @@ -303,14 +304,6 @@ namespace PolyVox iIndex %= uChunkArraySize; } while (iIndex != iPosisionHash); // Keep searching until we get back to our start position. - // Check whether the chunk was found. - if (pChunk) - { - // The chunk was found so we can use it. - POLYVOX_ASSERT(pChunk, "Recent chunk list shold never contain a null pointer."); - pChunk->m_uChunkLastAccessed = ++m_uTimestamper; - } - // If we still haven't found the chunk then it's time to create a new one and page it in from disk. if (!pChunk) {