mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 15:22:16 +00:00
Texture data overlap occuring here, using memmove instead.
This commit is contained in:
parent
9d2b7e560b
commit
1e11ce3bee
1 changed files with 1 additions and 1 deletions
|
@ -1285,7 +1285,7 @@ void FMultiPatchTexture::ResolvePatches()
|
||||||
{
|
{
|
||||||
if (Parts[i].Texture == nullptr)
|
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--;
|
i--;
|
||||||
NumParts--;
|
NumParts--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue