From de51d065b0bc6a9172c00ce174dc838a4367deaf Mon Sep 17 00:00:00 2001 From: toaster Date: Sat, 29 Oct 2022 12:51:00 +0100 Subject: [PATCH] Fix an issue with reading invalid memory when loading a map inside a pk3 that has no REJECT table. --- src/p_setup.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/p_setup.c b/src/p_setup.c index 8d73c12b8..5263d1b36 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -3071,6 +3071,10 @@ boolean P_SetupLevel(boolean skipprecip) (fileinfo + ML_REJECT)->size, (fileinfo + ML_REJECT)->name); } + else + { + rejectmatrix = NULL; + } // Important: take care of the ordering of the next functions. if (!loadedbm)