Merge branch 'fix-1222' into 'next'

Fix #1222

Closes #1222

See merge request STJr/SRB2!2448
This commit is contained in:
sphere 2024-05-22 11:20:06 +00:00
commit d6df06949d

View file

@ -821,8 +821,8 @@ Rloadflats (INT32 i, INT32 w)
UINT8 *flatlump = W_CacheLumpNumPwad(wadnum, lumpnum, PU_CACHE); UINT8 *flatlump = W_CacheLumpNumPwad(wadnum, lumpnum, PU_CACHE);
if (Picture_PNGDimensions((UINT8 *)flatlump, &texw, &texh, NULL, NULL, lumplength)) if (Picture_PNGDimensions((UINT8 *)flatlump, &texw, &texh, NULL, NULL, lumplength))
{ {
width = (INT16)width; width = (INT16)texw;
height = (INT16)height; height = (INT16)texh;
} }
else else
{ {