From f670ff3690a78ae3a370904e166c75c7de497539 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 29 Jul 2012 20:42:35 +0000 Subject: Ravines: implemented proper caching - another 10 % in generator speedup :) git-svn-id: http://mc-server.googlecode.com/svn/trunk@709 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Caves.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/Caves.cpp') diff --git a/source/Caves.cpp b/source/Caves.cpp index e06539f0f..994e57c86 100644 --- a/source/Caves.cpp +++ b/source/Caves.cpp @@ -797,7 +797,7 @@ void cStructGenWormNestCaves::GetCavesForChunk(int a_ChunkX, int a_ChunkZ, cStru { cCaveSystems::iterator itr = m_Cache.begin(); std::advance(itr, 100); - for (cCaveSystems::const_iterator end = m_Cache.end(); itr != end; ++itr) + for (cCaveSystems::iterator end = m_Cache.end(); itr != end; ++itr) { delete *itr; } -- cgit v1.2.3