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 drfrag666
parent 44084f81af
commit ce4d1fc1e4

View file

@ -1273,7 +1273,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--;
}