Texture data overlap occuring here, using memmove instead.

This commit is contained in:
David Carlier 2018-08-04 07:02:16 +01:00 committed by alexey.lysiuk
parent 9d2b7e560b
commit 1e11ce3bee

View file

@ -1285,7 +1285,7 @@ void FMultiPatchTexture::ResolvePatches()
{
if (Parts[i].Texture == nullptr)
{
memcpy(&Parts[i], &Parts[i + 1], (NumParts - i - 1) * sizeof(TexPart));
memmove(&Parts[i], &Parts[i + 1], (NumParts - i - 1) * sizeof(TexPart));
i--;
NumParts--;
}