From d54ee476569bb4e32ec2a287d0b875c40158a906 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 7 Dec 2010 16:16:31 +0000 Subject: [PATCH] - fixed: The intermission screen did not initialize its texture variable when the texture was invalid. SVN r3023 (trunk) --- src/intermission/intermission.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/intermission/intermission.cpp b/src/intermission/intermission.cpp index f0d308579..1287f93cc 100644 --- a/src/intermission/intermission.cpp +++ b/src/intermission/intermission.cpp @@ -110,12 +110,8 @@ void DIntermissionScreen::Init(FIntermissionAction *desc, bool first) { texname = GStrings[texname+1]; } - FTextureID tex = TexMan.CheckForTexture(texname, FTexture::TEX_MiscPatch); - if (tex.isValid()) - { - mBackground = tex; - mFlatfill = desc->mFlatfill; - } + mBackground = TexMan.CheckForTexture(texname, FTexture::TEX_MiscPatch); + mFlatfill = desc->mFlatfill; S_Sound (CHAN_VOICE | CHAN_UI, desc->mSound, 1.0f, ATTN_NONE); if (desc->mPalette.IsNotEmpty() && (lumpnum = Wads.CheckNumForFullName(desc->mPalette, true)) > 0) {