Skip to content

Commit

Permalink
Fix error trying to load BFG Edition DOOM2.WAD
Browse files Browse the repository at this point in the history
Fixes #850.
  • Loading branch information
bradharding committed Dec 12, 2024
1 parent e366309 commit d2c20d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/w_wad.c
Original file line number Diff line number Diff line change
Expand Up @@ -895,7 +895,9 @@ static bool W_IsPNGLump(const int lump)

void W_CheckForPNGLumps(void)
{
if (W_IsPNGLump(W_GetNumForName("TITLEPIC")))
const int lump = W_CheckNumForName("TITLEPIC");

if (lump >= 0 && W_IsPNGLump(lump))
I_Error("The TITLEPIC lump is an unsupported PNG image!");

for (int i = 0; i < numlumps; i++)
Expand Down

0 comments on commit d2c20d3

Please sign in to comment.