Skip to content

Commit

Permalink
Don't crash when intermission texture is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Evghenii committed Sep 2, 2024
1 parent 94d6f5e commit 625899d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/intermission/intermission.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ void DIntermissionScreen::Init(FIntermissionAction *desc, bool first)
{
texname = GStrings[texname+1];
}
if (texname[0] != 0)
if (texname && texname[0] != 0)
{
mBackground = TexMan.CheckForTexture(texname, FTexture::TEX_MiscPatch);
mFlatfill = desc->mFlatfill;
Expand Down

0 comments on commit 625899d

Please sign in to comment.