From 61de40c6788828ec91b3d91caef579567757c6a0 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 22 Feb 2017 17:39:04 +0200 Subject: [PATCH] Relaxed error check for menu textures Null texture is acceptable as menu patch Total conversion IWADs like Adventures of Square may use this technique https://mantis.zdoom.org/view.php?id=320 --- src/menu/menudef.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/menu/menudef.cpp b/src/menu/menudef.cpp index 16b567166..bc95198f2 100644 --- a/src/menu/menudef.cpp +++ b/src/menu/menudef.cpp @@ -411,7 +411,7 @@ static void ParseListMenuBody(FScanner &sc, DListMenuDescriptor *desc) else if (args[i] == TypeTextureID) { auto f = TexMan.CheckForTexture(sc.String, FTexture::TEX_MiscPatch); - if (!f.isValid()) + if (!f.Exists()) { sc.ScriptError("Unknown texture %s", sc.String); }