mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 02:01:18 +00:00
Fixed crash when resolving multipatches with missing textures
https://forum.zdoom.org/viewtopic.php?t=59088
This commit is contained in:
parent
d9ddd50c98
commit
d95ac93376
1 changed files with 1 additions and 1 deletions
|
@ -1369,7 +1369,7 @@ void FMultiPatchTexture::ResolvePatches()
|
||||||
{
|
{
|
||||||
if (Parts[i].Texture == nullptr)
|
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--;
|
i--;
|
||||||
NumParts--;
|
NumParts--;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue