From b210bffd3e532e4f8cee8e2f9966aeee08256874 Mon Sep 17 00:00:00 2001 From: Joseph Carter Date: Wed, 2 Feb 2000 05:10:56 +0000 Subject: [PATCH] Note to self: ...test before you commit, test before you commit... --- common/quakefs.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/common/quakefs.c b/common/quakefs.c index d969847..cd1921d 100644 --- a/common/quakefs.c +++ b/common/quakefs.c @@ -646,11 +646,13 @@ void COM_LoadGameDirectory(char *dir) pak = COM_LoadPackFile(pakfile); if(!pak) foundall = 1; - - search = Hunk_Alloc (sizeof(searchpath_t)); - search->pack = pak; - search->next = com_searchpaths; - com_searchpaths = search; + else + { + search = Hunk_Alloc (sizeof(searchpath_t)); + search->pack = pak; + search->next = com_searchpaths; + com_searchpaths = search; + } } #if defined _EXPERIMENTAL_ && GENERATIONS