Permalink
Browse files

Anvil: Fixed an off-by-one error in the loader.

Fixes #1307.
  • Loading branch information...
madmaxoft committed Sep 6, 2014
1 parent dd0aa22 commit 9f9302f470d2adc1ef4018474c4f03a72ca723ed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/WorldStorage/WSSAnvil.cpp
@@ -2821,7 +2821,7 @@ bool cWSSAnvil::cMCAFile::GetChunkData(const cChunkCoords & a_Chunk, AString & a
}
unsigned ChunkLocation = ntohl(m_Header[LocalX + 32 * LocalZ]);
unsigned ChunkOffset = ChunkLocation >> 8;
if (ChunkOffset <= 2)
if (ChunkOffset < 2)
{
return false;
}

0 comments on commit 9f9302f

Please sign in to comment.