From f8aaa2bfab6870932b4bdb85352d93d6a7493a26 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Sat, 11 Jan 2020 11:34:13 +0100 Subject: [PATCH] ignore too short demo lumps not only empty ones --- Source/g_game.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/g_game.c b/Source/g_game.c index 33c9aea3..66957b1a 100644 --- a/Source/g_game.c +++ b/Source/g_game.c @@ -1124,8 +1124,8 @@ static void G_DoPlayDemo(void) demobuffer = demo_p = W_CacheLumpName (basename, PU_STATIC); // killough - // [FG] ignore empty demo lumps - if (!demobuffer) + // [FG] ignore too short demo lumps + if (W_LumpLength(W_GetNumForName(basename)) < 0xd) { gameaction = ga_nothing; demoplayback = true;