Fixed crash on loading multipatch texture with height of 256

http://forum.zdoom.org/viewtopic.php?t=53953
This commit is contained in:
alexey.lysiuk 2016-10-26 12:08:03 +03:00
parent fa8e05d56d
commit 316e3395ad

View file

@ -297,8 +297,6 @@ FMultiPatchTexture::FMultiPatchTexture (const void *texdef, FPatchLookup *patchl
Printf ("Texture %s is left without any patches\n", Name.GetChars());
}
CheckForHacks ();
DefinitionLump = deflumpnum;
}
@ -1370,6 +1368,8 @@ void FMultiPatchTexture::ResolvePatches()
delete[] Inits;
Inits = nullptr;
CheckForHacks();
// If this texture is just a wrapper around a single patch, we can simply
// forward GetPixels() and GetColumn() calls to that patch.