mirror of
https://github.com/leozide/leocad
synced 2024-12-26 21:58:44 +01:00
Fixed buffer overflow loading certain parts. Fixes #659.
This commit is contained in:
parent
6042cb8188
commit
5825371b7e
1 changed files with 0 additions and 2 deletions
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue