From c5e16f183eb06e772996ab1445883ff597d4adf5 Mon Sep 17 00:00:00 2001 From: toaster Date: Sun, 23 Sep 2018 13:23:03 +0100 Subject: [PATCH] Fix Sryder's crash (incorrect setting of dir_on when searching in subfolders). Also, correct a minor copypaste failure in one of the I_Errors' messages. --- src/filesrch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/filesrch.c b/src/filesrch.c index e1e2b39d..98be1f39 100644 --- a/src/filesrch.c +++ b/src/filesrch.c @@ -701,7 +701,7 @@ void searchfilemenu(char *tempname) if (tempname) { - dir_on[menudepthleft] = first; + dir_on[menudepthleft] = 0; //first; -- can't be first, causes problems Z_Free(tempname); } } @@ -886,7 +886,7 @@ boolean preparefilemenu(boolean samedepth) if ((menudepthleft != menudepth-1) // now for UP... entry && !(coredirmenu[0] = Z_StrDup(va("%c\5UP...", EXT_UP)))) - I_Error("searchfilemenu(): could not create \"UP...\"."); + I_Error("preparefilemenu(): could not create \"UP...\"."); menupath[menupathindex[menudepthleft]] = 0; sizecoredirmenu = (numfolders+pos); // just in case things shrink between opening and rewind