Skip to content

Commit

Permalink
* Fix bad delete when C_MAX_CHUNKS sizes are modified.
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed May 27, 2024
1 parent 78ae969 commit 420746a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/world/level/levelgen/chunk/ChunkCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ ChunkCache::~ChunkCache()
SAFE_DELETE(m_pChunkSource);
SAFE_DELETE(m_pEmptyChunk);

for (int i = 0; i < 16; i++)
for (int j = 0; j < 16; j++)
for (int i = 0; i < C_MAX_CHUNKS_Z; i++)
for (int j = 0; j < C_MAX_CHUNKS_X; j++)
{
LevelChunk* pChk = m_chunkMap[i][j];
if (pChk)
Expand Down

0 comments on commit 420746a

Please sign in to comment.