From d90c2ac4b4f0a6ceaa7e12cf242fcaa43bb46e0b Mon Sep 17 00:00:00 2001 From: Lactozilla Date: Sun, 19 May 2024 01:43:02 -0300 Subject: [PATCH] Fix #1222 --- src/r_textures.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/r_textures.c b/src/r_textures.c index 59cc11413..d821faaa1 100644 --- a/src/r_textures.c +++ b/src/r_textures.c @@ -821,8 +821,8 @@ Rloadflats (INT32 i, INT32 w) UINT8 *flatlump = W_CacheLumpNumPwad(wadnum, lumpnum, PU_CACHE); if (Picture_PNGDimensions((UINT8 *)flatlump, &texw, &texh, NULL, NULL, lumplength)) { - width = (INT16)width; - height = (INT16)height; + width = (INT16)texw; + height = (INT16)texh; } else {