From e68d9562082437961e761927d2d505afed03bb7f Mon Sep 17 00:00:00 2001 From: Braden Obrzut Date: Thu, 3 Nov 2011 21:08:39 +0000 Subject: [PATCH] - Fixed: 2048 should be a valid height for a Doom patch. SVN r3310 (trunk) --- src/textures/patchtexture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/textures/patchtexture.cpp b/src/textures/patchtexture.cpp index eb9487bc2..e476cbad8 100644 --- a/src/textures/patchtexture.cpp +++ b/src/textures/patchtexture.cpp @@ -94,7 +94,7 @@ static bool CheckIfPatch(FileReader & file) int height = LittleShort(foo->height); int width = LittleShort(foo->width); - if (height > 0 && height < 2048 && width > 0 && width <= 2048 && width < file.GetLength()/4) + if (height > 0 && height <= 2048 && width > 0 && width <= 2048 && width < file.GetLength()/4) { // The dimensions seem like they might be valid for a patch, so // check the column directory for extra security. At least one