1
0
Fork 0

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

Fixes #1307.
This commit is contained in:
Mattes D 2014-09-06 13:32:16 +02:00
parent dd0aa22d2e
commit 9f9302f470
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}