From 316e3395adec1fea9965317339a4641620979eaa Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 26 Oct 2016 12:08:03 +0300 Subject: [PATCH] Fixed crash on loading multipatch texture with height of 256 http://forum.zdoom.org/viewtopic.php?t=53953 --- src/textures/multipatchtexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/textures/multipatchtexture.cpp b/src/textures/multipatchtexture.cpp index cb2d5d803..e1e6faf3e 100644 --- a/src/textures/multipatchtexture.cpp +++ b/src/textures/multipatchtexture.cpp @@ -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.