Skip to content

Commit

Permalink
Fixed crash when resolving multipatches with missing textures
Browse files Browse the repository at this point in the history
  • Loading branch information
IgeNiaI committed Dec 6, 2022
1 parent 1aca0d9 commit b378ce2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/textures/multipatchtexture.cpp
Expand Up @@ -1364,7 +1364,7 @@ void FMultiPatchTexture::ResolvePatches()
{
if (Parts[i].Texture == nullptr)
{
memcpy(&Parts[i], &Parts[i + 1], NumParts - i - 1);
memcpy(&Parts[i], &Parts[i + 1], (NumParts - i - 1) * sizeof(TexPart));
i--;
NumParts--;
}
Expand Down

0 comments on commit b378ce2

Please sign in to comment.