Fixed buffer overflow loading certain parts. Fixes #659.

This commit is contained in:
Leonardo Zide 2021-03-27 12:48:36 -07:00
parent 6042cb8188
commit 5825371b7e

View file

@ -1233,8 +1233,6 @@ lcMesh* lcLibraryMeshData::CreateMesh()
for (int IndexIdx = 0; IndexIdx < SrcSection->mIndices.GetSize(); IndexIdx++)
*Index++ = BaseVertex + SrcSection->mIndices[IndexIdx];
DstSection.NumIndices += SrcSection->mIndices.GetSize();
}
else
for (int IndexIdx = 0; IndexIdx < SrcSection->mIndices.GetSize(); IndexIdx++)