mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +00:00
Fixed crash on loading multipatch texture with height of 256
http://forum.zdoom.org/viewtopic.php?t=53953
This commit is contained in:
parent
fa8e05d56d
commit
316e3395ad
1 changed files with 2 additions and 2 deletions
|
@ -297,8 +297,6 @@ FMultiPatchTexture::FMultiPatchTexture (const void *texdef, FPatchLookup *patchl
|
||||||
Printf ("Texture %s is left without any patches\n", Name.GetChars());
|
Printf ("Texture %s is left without any patches\n", Name.GetChars());
|
||||||
}
|
}
|
||||||
|
|
||||||
CheckForHacks ();
|
|
||||||
|
|
||||||
DefinitionLump = deflumpnum;
|
DefinitionLump = deflumpnum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1370,6 +1368,8 @@ void FMultiPatchTexture::ResolvePatches()
|
||||||
delete[] Inits;
|
delete[] Inits;
|
||||||
Inits = nullptr;
|
Inits = nullptr;
|
||||||
|
|
||||||
|
CheckForHacks();
|
||||||
|
|
||||||
// If this texture is just a wrapper around a single patch, we can simply
|
// If this texture is just a wrapper around a single patch, we can simply
|
||||||
// forward GetPixels() and GetColumn() calls to that patch.
|
// forward GetPixels() and GetColumn() calls to that patch.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue