1
0

Fixed Bug in cChunkData.

FIxed a bug where if the index was not aligned with the sections empty sections would not be set in the correct location.
This commit is contained in:
worktycho 2015-03-10 20:32:01 +00:00
parent ce6219530a
commit 45fa2d98db

View File

@ -361,7 +361,7 @@ void cChunkData::CopyBlockTypes(BLOCKTYPE * a_Dest, size_t a_Idx, size_t a_Lengt
}
else
{
memset(&a_Dest[(i * SectionBlockCount) - a_Idx], 0, sizeof(BLOCKTYPE) * ToCopy);
memset(&a_Dest[(i * SectionBlockCount) + StartPos - a_Idx], 0, sizeof(BLOCKTYPE) * ToCopy);
}
}
}